<?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 Re: root objects in email template not available in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254262#M207392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think even if you #include a template that that will work since the model is still the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the trick will be to add the root objects you want to the model.&amp;nbsp;&amp;nbsp; Something is doing it for freemarker templates run by webscripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example are you using the EmailActionExecutor?&amp;nbsp;&amp;nbsp; There's a createEmailTemplateModel that may need "improving"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I note that there is a "url" property that may just be what you are looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 12:08:40 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2011-07-08T12:08:40Z</dc:date>
    <item>
      <title>root objects in email template not available</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254259#M207389</link>
      <description>Hi all,I am trying to utilize "url" root object in freemarker template for email, but getting following errorExpression url is undefined on line 8, column 13 in workspace://SpacesStore/8da5d9eb-06af-4637-8bb3-ff2b35245458.The problematic instruction:———-==&amp;gt; ${url.context} [on line 8, column 11 in</description>
      <pubDate>Fri, 08 Jul 2011 09:43:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254259#M207389</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2011-07-08T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: root objects in email template not available</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254260#M207390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think (I may however be wrong here) that any "root" objects are available.&amp;nbsp;&amp;nbsp;&amp;nbsp; What happens is that various properties are added into the "model" which are then formatted by the template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However depending upon which template (for example the imap ones) already have a download URL on them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 10:08:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254260#M207390</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-08T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: root objects in email template not available</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254261#M207391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think (I may however be wrong here) that any "root" objects are available. What happens is that various properties are added into the "model" which are then formatted by the template.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. that is what happening. If I prepare a parameters map from java and call processTemplate(…) method of templateService, I could access parameter object in template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if there is any way of including other template in this case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets say I define a generic template with &amp;lt;#assign X="somevalue"&amp;gt; directive, include this template with &amp;lt;#include path&amp;gt; in the template and utilize variable "X".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So that generic template could be utlized if there are more templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issue with this is how to specify path of the FTL file in &amp;lt;#include&amp;gt; ? since we can not use any of the "root" objects, say "companyhome".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried following but no luck&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#include ${companyhome.path} + "/Data Dictionary/Email Templates/my_generic_template.ftl"&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;May be there couls be other ways to specify path which I am not aware about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate any thoughts on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Nikesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 11:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254261#M207391</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2011-07-08T11:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: root objects in email template not available</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254262#M207392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think even if you #include a template that that will work since the model is still the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the trick will be to add the root objects you want to the model.&amp;nbsp;&amp;nbsp; Something is doing it for freemarker templates run by webscripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example are you using the EmailActionExecutor?&amp;nbsp;&amp;nbsp; There's a createEmailTemplateModel that may need "improving"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I note that there is a "url" property that may just be what you are looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 12:08:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-objects-in-email-template-not-available/m-p/254262#M207392</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-08T12:08:40Z</dc:date>
    </item>
  </channel>
</rss>

