Foren

Hide page before signin

suresh reddy k, geändert vor 15 Jahren.

Hide page before signin

Junior Member Beiträge: 30 Beitrittsdatum: 27.01.09 Neueste Beiträge
Hi,

I created a new page (test page) with 2 portlets.

Present view is...as soon as I access liferay, I could see 2 pages (Welcome and test page); welcome page has sign-in portlet and test page has remaining 2 portlets. I could see data for portlets only on login... all well;
But, my requirement is to hide the page alltogether before sign-in (ideally, no point for me to show page with some (error) message... "Please login to view the content")

Can I hide the page (test page) and show welcome page only on first access and show test page if user logs in successfully?

Any pointers would be highly appreciated.

Suresh
Thomas Kellerer, geändert vor 15 Jahren.

RE: Hide page before signin

Expert Beiträge: 490 Beitrittsdatum: 09.06.08 Neueste Beiträge
Remove the permission "view" for guest on that second page, and only allow community members to view the page.

To do that, goto "Manage Pages", select the page that you want to hide, then click on "Permissions" (at the bottom)
suresh reddy k, geändert vor 15 Jahren.

RE: Hide page before signin

Junior Member Beiträge: 30 Beitrittsdatum: 27.01.09 Neueste Beiträge
Hi Thomas,

Thanks for the reply; it worked for me....

As of now, new page is displayed once I login.... is there a way to redirect to that page on login?? so that, I can avoid asking users to click on the page...

I tried the setting up the following properties in portal-ext.properties but, no luck

auth.forward.by.last.path=true
default.landing.page.path=http://localhost/web/guest/2
login.events.post=com.liferay.portal.events.LoginPostAction,com.liferay.portal.events.DefaultLandingPageAction

Thanks once again for the reply.

Suresh
thumbnail
Gere P, geändert vor 14 Jahren.

RE: Hide page before signin

Regular Member Beiträge: 137 Beitrittsdatum: 20.08.09 Neueste Beiträge
Try to give default.landing.page.path=web/guest/2
Vilmos Papp, geändert vor 3 Monaten.

RE: Hide page before signin

Regular Member Beiträge: 131 Beitrittsdatum: 04.05.09 Neueste Beiträge
you can use the following link for redirecting after login: http://yourhost/c/portal/login?redirect=//web/guest/2