Apply template output new document instead of preview

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 05:53 PM
How do I apply a template to a document and create a new document rather than just previewing the output?
Thanks
Thanks
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 06:54 AM
At the moment there is no function for this. We hope to add an action that can perform this in a later version.
Thanks,
Kevin
Thanks,
Kevin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2006 06:15 AM
Is this solved already in Alfresco 1.4 ?
If yes, how?
If yes, how?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2007 07:05 AM
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.
Thanks,
Kevin
Thanks,
Kevin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2011 11:41 AM
simply try out:
you might adopt the path towards your template file
var template = companyhome.childByNamePath("Daten Verzeichnis/Darstellungsvorlagen/mytemplate.ftl");var outfile=space.createFile( document.properties.name+".html");outfile.content =document.processTemplate(template);outfile.save();
you might adopt the path towards your template file
