Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
tarina e e
CMS - Update same content for multiple templates automatically
March 17, 2013 12:00 AM
Answer

tarina e e

Rank: New Member

Posts: 23

Join Date: November 15, 2009

Recent Posts

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
March 17, 2013 6:07 AM
Answer

Gaurav Jain

Rank: Regular Member

Posts: 146

Join Date: January 31, 2011

Recent Posts

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
March 18, 2013 12:13 AM
Answer

tarina e e

Rank: New Member

Posts: 23

Join Date: November 15, 2009

Recent Posts

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
March 19, 2013 1:23 AM
Answer

tarina e e

Rank: New Member

Posts: 23

Join Date: November 15, 2009

Recent Posts

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

Thanks.
Gaurav Jain
RE: CMS - Update same content for multiple templates automatically
March 19, 2013 8:56 PM
Answer

Gaurav Jain

Rank: Regular Member

Posts: 146

Join Date: January 31, 2011

Recent Posts

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?