<?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 Apply template output new document instead of preview in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25146#M12392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I apply a template to a document and create a new document rather than just previewing the output?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2006 21:53:13 GMT</pubDate>
    <dc:creator>ronchan</dc:creator>
    <dc:date>2006-07-04T21:53:13Z</dc:date>
    <item>
      <title>Apply template output new document instead of preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25146#M12392</link>
      <description>How do I apply a template to a document and create a new document rather than just previewing the output?Thanks</description>
      <pubDate>Tue, 04 Jul 2006 21:53:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25146#M12392</guid>
      <dc:creator>ronchan</dc:creator>
      <dc:date>2006-07-04T21:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apply template output new document instead of preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25147#M12393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the moment there is no function for this. We hope to add an action that can perform this in a later version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 10:54:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25147#M12393</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-17T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Apply template output new document instead of preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25148#M12394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this solved already in Alfresco 1.4 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, how?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:15:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25148#M12394</guid>
      <dc:creator>bruno_borges</dc:creator>
      <dc:date>2006-11-16T11:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apply template output new document instead of preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25149#M12395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is possible to do this using the JavaScript API - which can execute a template and create/modify a document node to set the content. There is not an action explicitly for it, but you can create a javascript action that calls your script. It's not ideal so will still be something we'd like to add explicit support for in a later version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 11:05:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25149#M12395</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-04-24T11:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apply template output new document instead of preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25150#M12396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;simply try out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var template = companyhome.childByNamePath("Daten Verzeichnis/Darstellungsvorlagen/mytemplate.ftl");&lt;BR /&gt;&lt;BR /&gt;var outfile=space.createFile( document.properties.name+".html");&lt;BR /&gt;outfile.content =document.processTemplate(template);&lt;BR /&gt;outfile.save();&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;/SPAN&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;you might adopt the path towards your template file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:41:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/apply-template-output-new-document-instead-of-preview/m-p/25150#M12396</guid>
      <dc:creator>ragnaroek-hh</dc:creator>
      <dc:date>2011-11-08T16:41:07Z</dc:date>
    </item>
  </channel>
</rss>

