Fóruns

Início » Liferay Portal » English » Liferay Legacy

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Joshua Asbury
User Permissions on Page
5 de Outubro de 2006 08:06
Resposta

Joshua Asbury

LIFERAY STAFF

Ranking: Expert

Mensagens: 496

Data de entrada: 8 de Setembro de 2006

Mensagens recentes

Hi all -

Background:
We have two communities on our site -- one for Guests clearly and one for Authenticated customers where we tailor the content to their specific needs. When our customers login, I would like them directed to the authenticated community's "What's New" page (working on that...and getting there....) which is where we publish new Marketing content. I have not made our users Power Users so they don't have a "configured LifeRay so that the authenticated folks do not have a Private section.

We would like to allow a portion of the "What's New" page to behave like a private section -- where our marketing journal contents are maintained and the users' have the ability to add/modify content on the page -- stock symbol/weather/news portlets.

So, how can I accomplish this? I'm thinking that an option would be to add the users into the Power User group, somehow lock down the journal contents that we want locked down, and make their private area the authenticated section of the website. I'm not certain how I can add the existing authenticated pages to reside in a user's private area. Any help would be *greatly* appreciated.

Let me know if I'm not being clear in my description...

Thanks!
Josh
Joseph Shum
RE: User Permissions on Page
5 de Outubro de 2006 09:02
Resposta

Joseph Shum

LIFERAY STAFF

Ranking: Expert

Mensagens: 336

Data de entrada: 16 de Maio de 2006

Mensagens recentes

hi josh.

you can wrap sections of your page that you want to restrict to certain users by implementing resource action permissions on the page. for example, if you create an action called ADMINISTRATE. then you can allow only users that have permissions to ADMINISTRATE to see a certain section of the page.

1
2<c:if test="<%= PortletPermission.contains(permissionChecker, plid, PortletKeys.YOUR_PORTLET, ActionKeys.ADMINISTRATE) %>">
3 <%-- some content   --%>
4</c:if>



hope this helps.