Forums

Home » Liferay Portal » English » 3. Development »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vinh Nguyen
configure default portal pages without CMS?
January 25, 2008 3:24 PM
Answer

Vinh Nguyen

Rank: New Member

Posts: 1

Join Date: January 25, 2008

Recent Posts

Hi,
I can't seem to find documentation anywhere on how to manually configure portal pages and their content without using CMS.

Basically, I'd like to start with a clean portal instance without the default Liferay portal pages (i.e. Products, Services, Partners, etc). Then, I'd like to configure my own default pages via some config files, and specify the portlets in those pages.

This way, I can ship this portal product with a clean db. Then, customers can customize the rest at runtime via the UI. Otherwise, if I need to use CMS to configure my pages/portlets, I also have to ship the db with all the previous state. This makes deployment/distribution/upgrades more difficult.

So in a way, is all state saved in the db, including the default state?

Any help is appreciated, thanks!
-Vinh
Björn Ryding
RE: configure default portal pages without CMS?
January 27, 2008 7:48 AM
Answer

Björn Ryding

Rank: Liferay Master

Posts: 580

Join Date: May 16, 2007

Recent Posts

The following section in portal.properties should interest you.

##
## Default Guest
##

#
# The Guest group at least one public page. The settings for the initial
# public page are specified in the following properties. For more complex
# behavior, override the addDefaultLayouts method in
# com.liferay.portal.service.impl.GroupLocalServiceImpl.
#

#
# Set the layout name.
#
default.guest.layout.name=Welcome

#
# Set the layout template id that matches an existing TPL.
#
#default.guest.layout.template.id=1_2_1_columns
#default.guest.layout.template.id=1_column
#default.guest.layout.template.id=2_2_columns
#default.guest.layout.template.id=2_columns_i
default.guest.layout.template.id=2_columns_ii
#default.guest.layout.template.id=2_columns_iii
#default.guest.layout.template.id=3_columns

#
# Set the layout ids for the column specified in the layout template.
#
default.guest.layout.column-1=58,
default.guest.layout.column-2=47,
default.guest.layout.column-3=
default.guest.layout.column-4=

#
# Set the friendly url. This will only have an effect if the Guest group
# also has a friendly URL set.
#
default.guest.friendly.url=/home

##
## Default User
##

#
# Users who have the Power User role must have at least one private personal
# page. The settings for the initial private page are specified in the
# following properties. For more complex behavior, override the
# addDefaultLayouts method in com.liferay.portal.events.ServicePreAction.
#

#
# Set the layout name.
#
default.user.layout.name=Home

#
# Set the layout template id that matches an existing TPL.
#
#default.user.layout.template.id=1_2_1_columns
#default.user.layout.template.id=1_column
#default.user.layout.template.id=2_2_columns
#default.user.layout.template.id=2_columns_i
default.user.layout.template.id=2_columns_ii
#default.user.layout.template.id=2_columns_iii
#default.user.layout.template.id=3_columns

#
# Set the layout ids for the column specified in the layout template.
#
default.user.layout.column-1=71_INSTANCE_OY0d,82,23,61,65,
default.user.layout.column-2=11,29,8,19
default.user.layout.column-3=
default.user.layout.column-4=

#
# Specify a LAR file that can be used to create a user's private or public
# layouts.
#
#default.user.private.layout.lar=${resource.repositories.root}/deploy/default_user_private.lar
#default.user.public.layout.lar=${resource.repositories.root}/deploy/default_user_public.lar
enzo f
RE: configure default portal pages
July 21, 2009 10:48 AM
Answer

enzo f

Rank: New Member

Posts: 19

Join Date: June 18, 2009

Recent Posts

default.user.private.layout.lar=${resource.repositories.root}/deploy/default_user_private.lar

doesn't seem to be working for me. I'm using 5.2.2

It doesn't complain even if I specify the name of a non-existent .lar file.

I'd like to debug the issue. where could i pace breakpoints?

The following properties work for me.
default.user.private.layout.column-1
default.user.private.layout.column-2

Thanks!