Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Becas Kostas
Different Roles have Different Public Pages Template
November 30, 2012 5:17 AM
Answer

Becas Kostas

Rank: Junior Member

Posts: 28

Join Date: August 30, 2012

Recent Posts

Is it possible different types of users (roles) have different sets of public pages.

For example:
- I have created the role
- i have created a site template and exported in .lar file.
- i have modified portla.properties with this line of code:
1default.user.public.layouts.lar = ${liferay.home}/deploy/testprod.lar


The problem is that i want only specific type of users (with specific role) to have the above template

Is it possible ?

for example lets say the new role has the unique name: MyRole. I tried to insert in portal.properties instead of default, myrole, but with no results.
1
2myrole.user.public.layouts.lar = ${liferay.home}/deploy/testprod.lar
Jan Geißler
RE: Different Roles have Different Public Pages Template
November 30, 2012 5:59 AM
Answer

Jan Geißler

Community Moderator

Rank: Liferay Master

Posts: 735

Join Date: July 5, 2011

Recent Posts

Have you tried with UserGroups? As far as I know this is possible via User Groups.
We did something similar, but we used an Ext-Plugin to Achive this, because at this point, Liferay didnt Apply Subpages correctly if you assigned Templates via User Groups.

Regards Jan

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!