Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Nathan Bragg
Navigation based on permissions?
29. Juni 2011 10:55
Antwort

Nathan Bragg

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 8. Oktober 2010

Neue Beiträge

Hello, I was wondering if it was possible to modify the navigation bar to add pages or child pages, and only display those pages if that person is a member of that organization or community? I'm assuming that I would have to modify the template in some way but I havn't figured out the correct way to do this.

For example if I have a navigation bar that look like this for guests

============================================
Welcome | FAQ
===========================================

However for a signed in user, I would like it to display this if he is a member of this organization it would display this:

===========================================
Welcome | FAQ | Organization 1
==========================================

Thanks,
Nathan
Anonym
RE: Navigation based on permissions?
29. Juni 2011 11:39
Antwort

Anonym

You can set permissions on individual pages by managing the pages through the control panel or clicking on on the Manage menu in the dockbar, then clicking on Pages.
Nathan Bragg
RE: Navigation based on permissions?
29. Juni 2011 11:51
Antwort

Nathan Bragg

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 8. Oktober 2010

Neue Beiträge

Aaron Delani:
You can set permissions on individual pages by managing the pages through the control panel or clicking on on the Manage menu in the dockbar, then clicking on Pages.


You may be able to do that with Community pages. When I look at the permissions of the page you are able to toggle for the following kinds of users:

Guest
Owner
Power User
User
Community Member


However there doesn't seem to be a way to toggle only members of that Organization can view those pages.

Even if there was, another problem is, I can't figure out a way to not display the name of the page if they do not have permissions to view it. As far as I can tell it shows the name of the page, but when the user clicks on it, it makes the user sign in if not signed in, or redirects the user to the previous page if signed in but does not have the permissions to view the page.
Denise Tucker
RE: Navigation based on permissions?
29. Juni 2011 11:58
Antwort

Denise Tucker

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 26. März 2009

Neue Beiträge

We've set our intranet site up with Navigation tabs as Nathan illustrated above. This is how we've done it:
Most of the pages on the site are Public pages, but with Guest permissions removed.
For each page in a community that we want everyone in the entire organization to be able to see, we have assigned View permissions to a custom regular role, which all our users have.
For the pages in the community that we want only the community members to see, we just don't give that custom regular role View permissions; only the Community has View permissions.
Nathan Bragg
RE: Navigation based on permissions?
30. Juni 2011 11:49
Antwort

Nathan Bragg

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 8. Oktober 2010

Neue Beiträge

Denise Tucker:
We've set our intranet site up with Navigation tabs as Nathan illustrated above. This is how we've done it:
Most of the pages on the site are Public pages, but with Guest permissions removed.
For each page in a community that we want everyone in the entire organization to be able to see, we have assigned View permissions to a custom regular role, which all our users have.
For the pages in the community that we want only the community members to see, we just don't give that custom regular role View permissions; only the Community has View permissions.


Thanks,

I'll probably have to go this route. It is a little bit of a pain cause I have to configure this for organizations instead of communities. For whatever reason there is no such option as 'Member of Organization' under permission like there is for 'Member of Community'

It means I'll have to create ~60 different roles. yuck
Jesse Paria
RE: Navigation based on permissions?
20. Januar 2012 13:50
Antwort

Jesse Paria

Rang: Junior Member

Nachrichten: 69

Eintrittsdatum: 4. März 2011

Neue Beiträge

You can set up custom permissions and then check it using permission checker. See this wiki
http://www.liferay.com/community/wiki/-/wiki/Main/Using+Custom+Permissions+in++Theme