Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
suresh reddy k
Hide page before signin
29. Januar 2009 06:47
Antwort

suresh reddy k

Rang: Junior Member

Nachrichten: 30

Eintrittsdatum: 27. Januar 2009

Neue 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
RE: Hide page before signin
29. Januar 2009 08:02
Antwort

Thomas Kellerer

Rang: Expert

Nachrichten: 377

Eintrittsdatum: 9. Juni 2008

Neue 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
RE: Hide page before signin
29. Januar 2009 08:21
Antwort

suresh reddy k

Rang: Junior Member

Nachrichten: 30

Eintrittsdatum: 27. Januar 2009

Neue 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
G P
RE: Hide page before signin
24. Dezember 2009 01:34
Antwort

G P

Rang: Regular Member

Nachrichten: 137

Eintrittsdatum: 19. August 2009

Neue Beiträge

Try to give default.landing.page.path=web/guest/2
György Vilmos Papp
RE: Hide page before signin
29. Dezember 2009 08:16
Antwort

György Vilmos Papp

Rang: Regular Member

Nachrichten: 127

Eintrittsdatum: 4. Mai 2009

Neue Beiträge

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