Fóruns

Início » Liferay Portal » English » 2. Using Liferay » General

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
tarina e e
CMS - Update same content for multiple templates automatically
17 de Março de 2013 00:00
Resposta

tarina e e

Ranking: New Member

Mensagens: 23

Data de entrada: 15 de Novembro de 2009

Mensagens 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.
Gaurav Jain
RE: CMS - Update same content for multiple templates automatically
17 de Março de 2013 06:07
Resposta

Gaurav Jain

Ranking: Regular Member

Mensagens: 141

Data de entrada: 31 de Janeiro de 2011

Mensagens 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
RE: CMS - Update same content for multiple templates automatically
18 de Março de 2013 00:13
Resposta

tarina e e

Ranking: New Member

Mensagens: 23

Data de entrada: 15 de Novembro de 2009

Mensagens 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
RE: CMS - Update same content for multiple templates automatically
19 de Março de 2013 01:23
Resposta

tarina e e

Ranking: New Member

Mensagens: 23

Data de entrada: 15 de Novembro de 2009

Mensagens recentes

Can anyone please help with this?
Is it possible at all?

Thanks.
Gaurav Jain
RE: CMS - Update same content for multiple templates automatically
19 de Março de 2013 20:56
Resposta

Gaurav Jain

Ranking: Regular Member

Mensagens: 141

Data de entrada: 31 de Janeiro de 2011

Mensagens 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?