Forums de discussion

Site-templates and community layout relation

Jignesh Gosai, modifié il y a 13 années.

Site-templates and community layout relation

New Member Publications: 11 Date d'inscription: 02/02/11 Publications récentes
Hi All

I have a site-template, and I have applied it to certain communities.

The Problem here is, now I want to determine programmatically that certain community is related to which site-template? Similar to what we have in determining user-group of a user (getUserGroupIds() method).

i.e. Is there any way(some API method(s)) so that we can determine that a particular community layouts are created from a particular site-template? I tried looping through all layouts of a community (because a community can have many pages and each page can be from different site-template) - aCommLayout.getLayoutSet().getLayoutSetPrototypeId() (aCommLayout is variable name, which is of type Layout), but it always returns layout set prototype id value as zero.

Any help would be appreciated. Thanks in advance.
thumbnail
Sandeep Nair, modifié il y a 13 années.

RE: Site-templates and community layout relation

Liferay Legend Publications: 1744 Date d'inscription: 06/11/08 Publications récentes
Hi,

I believe there is no relation once site template is assigned to a community's private or public page. Because if you change something in template later it does not affect the communitys pages which were created using the same template.

Regards,
Sandeep