<?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 Document templates with new content model + freemarker in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11200#M4938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm quite new to Alfresco. I've googled a lot about it, but I have not found the missing detail to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm triying to use Alfresco Community edition for creating a Word document with some dynamic content (properties values and some logic to include or not some paragraphs).&lt;/P&gt;&lt;P&gt;I've done all steps below from share, nothing&amp;nbsp;by programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I've created a custom content model, a new type &amp;nbsp;with two mandatory properties. No aspects.&lt;/P&gt;&lt;P&gt;2) I've created a template in data&amp;nbsp;dictionary/node templates, a "FTL" file, and assigned it to the custom type in (1). Mime type plain text. I've tried different contents for the template, variations in its sintax, and copying fragments from some sample templates in data dictionary/Presentation templates.&lt;/P&gt;&lt;P&gt;3) I've created a&amp;nbsp;folder in a site, and a&amp;nbsp;rule to convert doccuments to Word Docx when they are modified.&lt;/P&gt;&lt;P&gt;4) I've created a new document from template.&lt;/P&gt;&lt;P&gt;5) I modify the custom properties of (4).&lt;/P&gt;&lt;P&gt;6) Only after (5), the custom rule copies the document to Word format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problems and questions:&lt;/P&gt;&lt;P&gt;- The template content is just copied, without changes nor variable substitution. As if Freemarker was not executed.&lt;/P&gt;&lt;P&gt;- In (2) and (5), I've seen the "all properties" button doesn't show any more standard properties (like MIME type, labels...).&lt;/P&gt;&lt;P&gt;- What's the correct syntax for using properties in the template? Not sure about escaping ":" after namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2017 09:39:13 GMT</pubDate>
    <dc:creator>oscarmat</dc:creator>
    <dc:date>2017-06-16T09:39:13Z</dc:date>
    <item>
      <title>Document templates with new content model + freemarker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11200#M4938</link>
      <description>Hi,I'm quite new to Alfresco. I've googled a lot about it, but I have not found the missing detail to make it work.I'm triying to use Alfresco Community edition for creating a Word document with some dynamic content (properties values and some logic to include or not some paragraphs).I've done all s</description>
      <pubDate>Fri, 16 Jun 2017 09:39:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11200#M4938</guid>
      <dc:creator>oscarmat</dc:creator>
      <dc:date>2017-06-16T09:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Document templates with new content model + freemarker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11201#M4939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please share at least the template so we can figure out if the problem is in there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 11:17:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11201#M4939</guid>
      <dc:creator>mrks_js1</dc:creator>
      <dc:date>2017-06-16T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Document templates with new content model + freemarker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11202#M4940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;These are some fragments from different, independant tests I've done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;lt;H1&amp;gt;Titulo&amp;lt;/h1&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Hola ${demo2\:NombreCliente}&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;lt;h3&amp;gt;${message("templates.general_example.example_template_start")}&amp;lt;/h3&amp;gt;&amp;lt;b&amp;gt;${message("templates.general_example.company_home_space")}&amp;lt;/b&amp;gt; ${companyhome.properties.name}&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;lt;H1&amp;gt;Titulo&amp;lt;/h1&amp;gt;Hola &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;${NombreCliente}&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;lt;#list ["foo", "bar", "baz"] as x&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ${x}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/#list&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;I didn't get error messages, only the same input text as&amp;nbsp;output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 12:13:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-templates-with-new-content-model-freemarker/m-p/11202#M4940</guid>
      <dc:creator>oscarmat</dc:creator>
      <dc:date>2017-06-16T12:13:32Z</dc:date>
    </item>
  </channel>
</rss>

