Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
suresh reddy k
Hide page before signin
January 29, 2009 6:47 AM
Answer

suresh reddy k

Rank: Junior Member

Posts: 30

Join Date: January 27, 2009

Recent Posts

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
RE: Hide page before signin
January 29, 2009 8:02 AM
Answer

Thomas Kellerer

Rank: Expert

Posts: 377

Join Date: June 9, 2008

Recent Posts

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
RE: Hide page before signin
January 29, 2009 8:21 AM
Answer

suresh reddy k

Rank: Junior Member

Posts: 30

Join Date: January 27, 2009

Recent Posts

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
G P
RE: Hide page before signin
December 24, 2009 1:34 AM
Answer

G P

Rank: Regular Member

Posts: 137

Join Date: August 19, 2009

Recent Posts

Try to give default.landing.page.path=web/guest/2
György Vilmos Papp
RE: Hide page before signin
December 29, 2009 8:16 AM
Answer

György Vilmos Papp

Rank: Regular Member

Posts: 127

Join Date: May 4, 2009

Recent Posts

you can use the following link for redirecting after login: http://yourhost/c/portal/login?redirect=//web/guest/2