Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Javier Alpañez
Avaliable portlet to specific site only
February 26, 2013 10:15 AM
Answer

Javier Alpañez

Rank: New Member

Posts: 8

Join Date: May 25, 2009

Recent Posts

Hi Community!,

I have 2 Sites : Site 1 and Site 2. I deploy a portlet in Liferay Portal 6.1.1 and the portlet is avaliable to both Sites. I want that de Administrator Site of Site 1, can add to his pages, but the Administrator Site of Site 2 can't do. I.e. , the portlet is only avaliable to 1 Site and the others Sites of the Portal , don't know this portlet exist. Is possible? And the reverse? A portlet avaliable to all Sites except specific one?

Sorry for my English ... Thanks in advice.
Samuel Kong
RE: Avaliable portlet to specific site only
February 26, 2013 8:05 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 918

Join Date: March 10, 2008

Recent Posts

1. You won't be able to use the Site Administrator role since the Site Administrator automatically has permissions to add your portlet.
2. Create a "Role A" and a "Role B" to be your new administrator roles.
3. Re-add all the relevant permissions to these roles since you probably want them to still have admin abilities.
4. For Role A, add the "Add to Page" permission for your portlet but not to Role B
Javier Alpañez
RE: Avaliable portlet to specific site only
February 26, 2013 11:41 PM
Answer

Javier Alpañez

Rank: New Member

Posts: 8

Join Date: May 25, 2009

Recent Posts

Thanks for reply,

I want avoid creating more roles, but I'll consider your proposal.

Regards