How to change the default page of liferay to login page?

thumbnail
7962263, modified 15 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi folks,
Whenever we are giving the url of liferay portal by default it's going to the home page.i want to change this default page to login page.How should i do it....please help.I tried modifying the auth.login.url property to login page (auth.login.url=/login) in portal.properties file.But it's not working as expected.Please suggest me what to do........
thumbnail
552936, modified 15 Years ago. Liferay Legend Posts: 1902 Join Date: 3/10/08 Recent Posts
You should be able set the following property in portal-ext.properties:

#
# This sets the default home URL of the portal.
#
company.default.home.url=/web/guest
thumbnail
7962263, modified 15 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
hi,
i changed the portal.properties file and set it to company.default.home.url=/login,but after restarting the server the page becomes blank and remains idle with a message "waiting for login page" without displaying the login page.
thumbnail
4753419, modified 15 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
i changed the portal.properties file and set it to company.default.home.url=/login,but after restarting the server the page becomes blank and remains idle with a message "waiting for login page" without displaying the login page.


Probably because there is no /login page.
I think you want the following page:
company.default.home.url=/c/portal/login
thumbnail
7962263, modified 15 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hitoshi Ozawa:
i changed the portal.properties file and set it to company.default.home.url=/login,but after restarting the server the page becomes blank and remains idle with a message "waiting for login page" without displaying the login page.


Probably because there is no /login page.
I think you want the following page:
company.default.home.url=/c/portal/login


Hi,
i got it resolved by setting the property company.default.home.url=/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view.But even after deleting the cookies the page shows @liferay.com in user name textbox.If the user wants nothing should be displayed in user name place then what should be done.....please suggest......
thumbnail
7798316, modified 15 Years ago. Junior Member Posts: 42 Join Date: 3/8/11 Recent Posts
You can do this by editing organization properties in the control panel. Can also set it to standard organization id like abc@organization.com instead of abc@liferay.com
thumbnail
7962263, modified 15 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi,
after setting the login page as default still the options like "welcome" is visible in the navigation bar (just below the liferay logo).can anyone suggest me how to remove that bar from the login page.Actually we have deployed this login page as login hook.so may be for that reason it is not replacing the portal default page as a whole and the upper part is retained as such.so if there is any other way to change the html part of the portal default page so that we can delete the navigation bar along with the option "welcome" from the login page,please suggest.............

Thanks
Rojalin
thumbnail
552936, modified 15 Years ago. Liferay Legend Posts: 1902 Join Date: 3/10/08 Recent Posts
I assume you are referring to the navigation menu.

The navigation menu is controlled by your theme. So you'll need to some added logic to your theme to hide the menu if the user has not signed in. You can use the variable $is_signed_in to test if a user has signed in.

It seems to me like you're trying to password protect all your pages. If you only want authenticated users to use your site, you may want to consider some different approach.
* Switch from using public pages to private pages.
* Remove the guest view permission from all your pages.
thumbnail
devaraj S, modified 14 Years ago. Regular Member Posts: 100 Join Date: 2/21/12 Recent Posts
Hi my requirement is i want to navigate user to his public page lets say /web/{user name}/home after log in
can i do it?
Please let me know steps

Thank you
thumbnail
Tejas Kanani, modified 14 Years ago. Liferay Master Posts: 654 Join Date: 1/6/09 Recent Posts
Hi devaraj,

Check out below post. It's been nicely explained everything in detail.

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login

Thanks,
Tejas
thumbnail
Praveen P, modified 14 Years ago. Regular Member Posts: 100 Join Date: 2/21/12 Recent Posts
thank you
thumbnail
mohammad azaruddin, modified 12 Years ago. Expert Posts: 492 Join Date: 9/17/12 Recent Posts
Hitoshi Ozawa:


Probably because there is no /login page.
I think you want the following page:
company.default.home.url=/c/portal/login



Hi Hitoshi Ozawa It doesn't work for me