<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Importing Alfresco templates to a custom template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302903#M256033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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 &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#include "include/alfresco-template.ftl" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;. 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: &amp;lt;blockquote&amp;gt;Caused by: java.io.FileNotFoundException: Template alfresco/templates/org/include/alfresco-template.ftl not found.&amp;lt;/blockquote&amp;gt;Very simple problem but I don't know how to solve this. I've tried googling the answer with no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 07:05:35 GMT</pubDate>
    <dc:creator>sihnu</dc:creator>
    <dc:date>2015-03-19T07:05:35Z</dc:date>
    <item>
      <title>Importing Alfresco templates to a custom template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302903#M256033</link>
      <description>Hi,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 inc</description>
      <pubDate>Thu, 19 Mar 2015 07:05:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302903#M256033</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-03-19T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Alfresco templates to a custom template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302904#M256034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You missed "alfresco" word in your path after "org" and before "include".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;More information about #include directive in ftl -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://freemarker.org/docs/ref_directive_include.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/docs/ref_directive_include.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:57:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302904#M256034</guid>
      <dc:creator>s_palyukh</dc:creator>
      <dc:date>2015-03-19T11:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Alfresco templates to a custom template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302905#M256035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it seems I missed alfresco from the path but still it doesn't seem to point to right place. I think the root for absolute path points to tomcat/shared/classes/alfresco/web-extension/site-webscripts and that's why I can't refer to the template. I guess it's impossible. So I'm trying to come up with another solution for the problem now. I guess using alfresco-template.ftl is not mandatory. I already have an idea how to proceed. Anyway, thanks for the reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:59:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-alfresco-templates-to-a-custom-template/m-p/302905#M256035</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-03-19T14:59:27Z</dc:date>
    </item>
  </channel>
</rss>

