Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ponraj S
how to change the default homepage
July 27, 2012 10:51 PM
Answer

Ponraj S

Rank: Junior Member

Posts: 33

Join Date: October 12, 2011

Recent Posts

i want to change the default homepage how to change it .

thanks in advance!!
Tejas Kanani
RE: how to change the default homepage
July 28, 2012 12:51 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Hi Ponraj,

There are 2 ways of doing this.
1) From Control Panel
- Just go to Control Panel --> Portal Settings
- Give your custom default homepage url in Home URL property
if you want http://localhost:8080/web/guest/mypage to be your default home page then give only /web/guest/mypage in Home URL property.

2) From portal-ext.properties
- Add below property with your default homepage url value and restart the server.
1#
2# This sets the default home URL of the portal.
3#
4company.default.home.url=/web/guest/mypage

(Assuming that your homepage url is /web/guest/mypage, you need to give as per yours in above property)

Regards,
Tejas
Hitoshi Ozawa
RE: how to change the default homepage
July 30, 2012 3:22 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Tejas reply should work. Just want to add that method 1 take precedence over method 2 so if you set home page in portal-ext.properties and from Control Panel. setting in Control Panel is the one that will be effective.