AnsweredAssumed Answered

Importing Alfresco templates to a custom template

Question asked by sihnu on Mar 19, 2015
Latest reply on Mar 19, 2015 by sihnu

I'm implementing a custom controller and in my template I would like to include Alfresco template alfresco-template.ftl. The path to the template is alfresco/templates/org/alfresco/include/alfresco-template.ftl. How do I include the template to my custom template? I have noticed that Alfresco includes the template like this
<#include "include/alfresco-template.ftl" />
. But this is relative path and my custom template is in different directory. So I guess I should use absolute path. I've tried this /alfresco/templates/org/include/alfresco-template.ftl but it doesn't refer to correct path of the file and I get error template is not found: <blockquote>Caused by: Template alfresco/templates/org/include/alfresco-template.ftl not found.</blockquote>Very simple problem but I don't know how to solve this. I've tried googling the answer with no luck.

Thanks in advance.