cancel
Showing results for 
Search instead for 
Did you mean: 

Template questions

jokipii
Champ in-the-making
Champ in-the-making
Hi,

Is there any way to select used template engine in template preview, if there is available more than one template engine?
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
Hello,

The templating system can in theory support multiple engines (it has been designed to allow plugable implementations) but currently we only have one implementation Smiley Happy

Once we begin to expose these services more we will start to add other templating support such as XSLT I would imagine.

We intend to move the templating support down into the repository as a service - currently it is part of the client code only.

Thanks,

Kevin

jokipii
Champ in-the-making
Champ in-the-making
Hi,

My question formulation clearly fails  :lol:

I actually made simple implementation for XSLT templating (I can add some comment there and contribute the code). Then I add <engine name="xslt">correct.java.class.name</engine> inside the templates element in web-client-config.xml. Then I couldn't find any way to select which template engine is used for each template.

Only way to use it so far is comment out freemarker engine element and change name xslt to freemarker…

thanks,
Antti

kevinr
Star Contributor
Star Contributor
Your question is fine Smiley Happy I understand - at the moment we simply have not exposed a way to change the template engine in the web-client. So for now your solution is the only way to change the engine.

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
Latest Template Guide documentation for Alfresco 1.1 now available, including information on XML Node processing in templates, dashboard views and using/configuring the new Template Service in the repository.

http://www.alfresco.org/mediawiki/index.php/Template_Guide

Thanks,

Kevin