<?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 Problem with TemplateService loading a .ftl from classpath in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-templateservice-loading-a-ftl-from-classpath/m-p/194021#M147151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a problem, when trying to load a presentation template from my classpath instead of putting it into the "/Company Home/" Directory (by using names of course then). The ClassPathRepoTemplateLoader does not get involved in any way. Somehow the file I am referencing to, gets a NodeRef (I do not know where from) when taking a look into the code with the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am calling the following URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/template/?templatePath=render_block.ftl&amp;amp;contextPath=/Company%20Home/User%20Homes/SomeTenant/foo.file" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/template/?templatePath=render_block.ftl&amp;amp;contextPath=/Company%20Home/User%20Homes/SomeTenant/foo.file&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put the "render_block.ftl" template into an additional jar file (lying around in the exploded war) inside the "alfresco/extension/templates" directory of the jar - implying that the ClassPathRepoTemplateLoader&amp;nbsp; should get involved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the eclipse debugger I found out that there is no involvement of the class whatsoever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone shed some light on which templatePath I should use in this case or whether there is actually a bug. I would love to have all files inside a jar instead of putting them inside the repository (easy to replace and upgrade).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Alexander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2009 15:26:27 GMT</pubDate>
    <dc:creator>alr</dc:creator>
    <dc:date>2009-03-04T15:26:27Z</dc:date>
    <item>
      <title>Problem with TemplateService loading a .ftl from classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-templateservice-loading-a-ftl-from-classpath/m-p/194021#M147151</link>
      <description>Hi all,I am having a problem, when trying to load a presentation template from my classpath instead of putting it into the "/Company Home/" Directory (by using names of course then). The ClassPathRepoTemplateLoader does not get involved in any way. Somehow the file I am referencing to, gets a NodeRe</description>
      <pubDate>Wed, 04 Mar 2009 15:26:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-templateservice-loading-a-ftl-from-classpath/m-p/194021#M147151</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2009-03-04T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with TemplateService loading a .ftl from classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-templateservice-loading-a-ftl-from-classpath/m-p/194022#M147152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone as the answer to this very good question ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 11:51:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-templateservice-loading-a-ftl-from-classpath/m-p/194022#M147152</guid>
      <dc:creator>jurevert</dc:creator>
      <dc:date>2009-12-15T11:51:49Z</dc:date>
    </item>
  </channel>
</rss>

