Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Shankar Baba
how to make private page
20. November 2012 21:17
Antwort

Shankar Baba

Rang: Regular Member

Nachrichten: 144

Eintrittsdatum: 17. Oktober 2012

Neue Beiträge

How can i make my login page as public and remaining pages as private , so that after login only one can see the site content, any idea folks?
Juhi Kumari
RE: how to make private page
20. November 2012 21:37
Antwort

Juhi Kumari

Rang: Expert

Nachrichten: 347

Eintrittsdatum: 12. Dezember 2011

Neue Beiträge

Hi Shivaji,

Remove the view permission for guest of all pages except your login page. And give view permission to
Power User, so rthat after login only any one will be able to view all pages.


Regards
Juhi
Shankar Baba
RE: how to make private page
21. November 2012 04:27
Antwort

Shankar Baba

Rang: Regular Member

Nachrichten: 144

Eintrittsdatum: 17. Oktober 2012

Neue Beiträge

could u tell me how to do that ,briefly.please
Juhi Kumari
RE: how to make private page
21. November 2012 04:44
Antwort

Juhi Kumari

Rang: Expert

Nachrichten: 347

Eintrittsdatum: 12. Dezember 2011

Neue Beiträge

Hi,

Go to Dockbar --> Manage -->Page -->Select page --> Permission -->Uncheck view permission for guest and check view permission for Power User --> Save.
Do the same for all pages except the login page.


Regards
Juhi
Shankar Baba
RE: how to make private page
21. November 2012 21:43
Antwort

Shankar Baba

Rang: Regular Member

Nachrichten: 144

Eintrittsdatum: 17. Oktober 2012

Neue Beiträge

Thank you Juhi, it worked really nicely,i have one more doubt, by default i will show login page for users by that time no other pages are visible for user, after loggin in successfully, he will became poweruser have permissions to view the all oages this is all working fine, but my requirement is when he loggin he should not see the login details againg , ie i want hide this page from power user, how can i do this, if iam changing permission, there is already it is unchecked for poweruser
Gaurav Jain
RE: how to make private page
22. November 2012 00:49
Antwort

Gaurav Jain

Rang: Regular Member

Nachrichten: 146

Eintrittsdatum: 31. Januar 2011

Neue Beiträge

Shivaji C:
Thank you Juhi, it worked really nicely,i have one more doubt, by default i will show login page for users by that time no other pages are visible for user, after loggin in successfully, he will became poweruser have permissions to view the all oages this is all working fine, but my requirement is when he loggin he should not see the login details againg , ie i want hide this page from power user, how can i do this, if iam changing permission, there is already it is unchecked for poweruser



If I understood you correctly, after logging in you want to hide login page from navigation? If so, you can manage this in your theme. Default navigation is prepared from navigation.vm. Update it and check if user is signed in then don't display login page (how to check which page is login page - you can add a theme setting or custom page attribute, or can hardcode it)
Manish Kumar
RE: how to make private page
22. November 2012 07:33
Antwort

Manish Kumar

Rang: Junior Member

Nachrichten: 94

Eintrittsdatum: 1. März 2012

Neue Beiträge

Hello Shivaji,
You can get your requirement by using this code, just you have to make this type of conditions in your navigation.vm of your theme as Gaurav also mentioned.

1        #if(!$nav_item.getName().equals("page1")|| !$condition)
2       
3        #if(!$nav_item.getName().equals("page2") || !$condition)


Hope this will help you.
Thanks,
Manish Kumar
Shankar Baba
RE: how to make private page
22. November 2012 21:17
Antwort

Shankar Baba

Rang: Regular Member

Nachrichten: 144

Eintrittsdatum: 17. Oktober 2012

Neue Beiträge

1        #if(!$nav_item.getName().equals("page1")|| !$condition)
2       
3        #if(!$nav_item.getName().equals("page2") || !$condition)


Manish, thanks fro ur reply can u tell me the !$condition , what should i write to hide the login page after logging in


Regards, |Shivaji