I have a ftl template file stored in alfresco repository. The path of this file is: /app:company_home/app:dictionary/cm:StarXpert_x0020_Workflow/cm:templates/cm:contentModelTemplate.ftl
I want to use this FTL file to create an XML file. In my java backed webscript controller, i want to get the FTL file, i used many method to achieve this, but nothing works. I tried this code:
Template template=cfg.getTemplate("PATH:\"/app:company_home/app:dictionary/cm:StarXpert_x0020_Workflow/cm:templates/cm:contentModelTemplate.ftl\""); But i still getting this error:
java.io.FileNotFoundException: Template "contentModelTemplate.ftl" not found
I also tried to get the template by passing its nodeRef as reference to the getTemplate() method, but also it's not works.
Is there anybody who did this before ? Thanks for any hlep.
getTemplatedo not understand Alfresco paths, so i already get the error