Fórum

CMS - Update same content for multiple templates automatically

tarina e e, modificado 11 Anos atrás.

CMS - Update same content for multiple templates automatically

New Member Postagens: 23 Data de Entrada: 15/11/09 Postagens Recentes
Hi,
We want to create different templates which uses the same structure. So we will be able to display the same data in different views for different purposes.
Is it possible to load the content once to the structure and all the relevant templates will be updated automatically?
Thanks.
thumbnail
Gaurav Jain, modificado 11 Anos atrás.

RE: CMS - Update same content for multiple templates automatically

Regular Member Postagens: 145 Data de Entrada: 31/01/11 Postagens Recentes
Yes, its a default feature in liferay.

However I didn't quite understand what do you mean by :
>>> Is it possible to load the content once to the structure and all the relevant templates will be updated automatically?

Lets say you have added 4 WCDs to a page, and configured same web-content on all 4 WCDs, but with different templates (I mean 4 templates are associated with same structure).
And if you will edit that web-content from any place, data will get changed in all 4 WCDs (because its same content) as per your templates
tarina e e, modificado 11 Anos atrás.

RE: CMS - Update same content for multiple templates automatically

New Member Postagens: 23 Data de Entrada: 15/11/09 Postagens Recentes
Thanks, but I guess I am doing something wrong, it is not working for me.
This is what I am doing:
1. Defining a structure
2. Defining 2 templates for the same structure
3. Create a new web content for the structure - when doing it, automatically one of the templates is assigned to it. lets say I'm choosing template A.
4. I've added 2 web content display portlets on a portal page, when I am choosing the content I've created, it is already with template A.
5. I'm trying to change the template to template B for one WCD portlet, but when I am doing it, the other WCD portlet template it getting changed too...

How can I change template to only one of the contents?

I am using v 6.1

Thanks.
tarina e e, modificado 11 Anos atrás.

RE: CMS - Update same content for multiple templates automatically

New Member Postagens: 23 Data de Entrada: 15/11/09 Postagens Recentes
Can anyone please help with this?
Is it possible at all?

Thanks.
thumbnail
Gaurav Jain, modificado 11 Anos atrás.

RE: CMS - Update same content for multiple templates automatically

Regular Member Postagens: 145 Data de Entrada: 31/01/11 Postagens Recentes
Can you please mention the exact version of your liferay portal?
(6.1 CE GA1 or 6.1 EE GA1 or 6.1 CE GA2 etc); also can you please attach your portal-ext.properties file here?
And while changing your template selection, do you see any errors or warning messages in logs?