Default login page....

thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi all,
i want to make the login page of liferay the default page instead of the home page.So i changed the following property in portal-ext.properties
company.default.home.url=/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Flogin
so that after restarting the server the company home page would be the login.jasp page and after logging in the user will see the home page as usual.
But the problem is the same property is working fine in liferay-portal-5.2.3 CE bundle and i m getting the login page first after restarting the server but the same is not happening in liferay6.0.6 CE.emoticon
Why so????????/is there any security policies applied in 6.0.6??????????????then how can i make the login page the default page??????????//
please help me out..............
Thanks
Rojalin
thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Is there any solution for this.....????????
please help me out.......emoticon
Any help would be greatly appreciated...
Thanks
Rojalin
karthik N, modified 14 Years ago. Regular Member Posts: 106 Join Date: 7/1/11 Recent Posts
Hi,
Follow this procedure
1.Create One public page (for example login)in Liferay.com community, on that page add signin portlet, As per your wish You can make login page as hidden page.
2. company.default.home.url=/web/guest/login. in portal-ext.properties file
Its working fine for me...


Thanks
thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi Karthik,
thanks for the reply.Actually in my case when i m giving company.default.home.url=/web/guest/test (i have kept my login portlet in test page),it's always landing at http://localhost:8080.It's not atall going to the page.That's what was my doubt,whatever may be the page address upon restarting the server it's always landing at the home page url.
I wonder whether changing company default home page is possible in 6.0.6 or not.Because the same feature is working fine in 5.2.3.emoticon
i am not able to make out why this is not happening.....
Any suggestions..............
Thanks
Rojalin
karthik N, modified 14 Years ago. Regular Member Posts: 106 Join Date: 7/1/11 Recent Posts
Hi,
Im also using LR6.0.6, You need set home url in the portal settings, as /web/guest/signin{ur test page name}, Its working for me


Regards,
Karthik
thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi Karthik,
please tell me how to set home url in the portal settings, as /web/guest/signin{ur test page name}.Do you mean the settings link we get under "manage" once you login as admin?????????
Thanks
Rojalin
karthik N, modified 14 Years ago. Regular Member Posts: 106 Join Date: 7/1/11 Recent Posts
Hi,
for that we need to go to Control panel under manage tab,
click on portal settings in control panel,
In that we can see the Home URL under navigation part,
In home url we can set /web/guest/signin



Regards,
Karthik
thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Hi Karthik,
i followed up the steps.i have kept my signin portlet in test page and i gave the path in HomeUrl=/web/guest/test.still it's going to the web/guest/home page.
Any guess why it's not going to the test page even after clearing all the private data,cookies and restarting the server also??????????????????/
Thanks
Rojalin
thumbnail
Mani kandan, modified 14 Years ago. Expert Posts: 492 Join Date: 9/15/10 Recent Posts
Try to give in portal-ext.properties file,

auth.forward.by.last.path = true
default.landing.page.path = your login path

or

company.default.home.url=/c/portal/login
thumbnail
Rojalin Patri, modified 14 Years ago. Expert Posts: 287 Join Date: 3/22/11 Recent Posts
Tried all the suggestions...but still no luck....it's always coming to the home page at http://localhost:8080...
Any one tried out the same in their bundles....
Any body faced the same issue ever???????????//
Another thing i observed,even after removing the portal-ext.properties where i had set default.landing.page.path = /web/guest/test2 ,it's still going to test2 page after login.The same is happening even after clearing the cache,cookies and all private data....
is it a problem with liferay 6 CE..or i am doing something wrong....
please help...........