cancel
Showing results for 
Search instead for 
Did you mean: 

Join Templates

dvc
Champ in-the-making
Champ in-the-making
Hi everyone!

I don't know how I can resolve this "problem".

How can I join several templates - web forms in a only template –> page??

For example:
If I create several news with a web form and I display these news with its template
Now I create another content with other web form and it can be display with its template
At the end I want to join these content in a unique page for example the home

How can I do this?
In others WCM I have put several presentation templates in a "page template".

Thanks in advance.

Regards!!
1 REPLY 1

adrianpj
Champ in-the-making
Champ in-the-making
Try to use parseXMLDocuments(String formName, String virtualPath) (see http://wiki.alfresco.com/wiki/WCM_Forms_Rendering) to read those XML files from your "main" template, and use include directives to re-use templates, so you get just one rendition from all those XML's.

Another way will be to include the renditions in your main template; remember <#include/> also looks for files in your Web project, so you could include all required renditions; the problem is to know the filenames of the required renditions.