cancel
Showing results for 
Search instead for 
Did you mean: 

Using a doc as template in Alfresco Share

horia
Champ in-the-making
Champ in-the-making
Hi,

Is it possible to set a document as a template in order to create articles based on its content?
Can it be done in the Alfresco Share UI or it needs configuration update?

Thanks
1 REPLY 1

steven_okennedy
Star Contributor
Star Contributor
Hi horia,

What version are you using? From 4.0 (I think - it may be available a little earlier) you can use the create from template functionality.  You put your template document into the Data Dictionary in the Node Templates folder and you need to make sure that create-content-by-template config value is set to true (it is set to true by default as far as I know)

<config evaluator="string-compare" condition="DocumentLibrary">

   <create-content-by-template>true</create-content-by-template>
</config>


You can see what this value is currently set to in share-documentlibrary-config.xml in $TOMCAT/webapps/share/WEB-INF/classes/alfresco and you can change it if you need to using $TOMCAT/shared/classes/alfresco/web-extension/share-config-custom.xml or using one of the standard share extension mechanisms, like an amp or a share extension module.

Once you have the setting set to true and the template documents in place, then you can create documents from templates using the create content menu and choosing the Create by Templated Node submenu.  The templates you put into the Node Templates folder will show up here.  You can add documents here at any stage and they'll show up in the menu when you refresh the page


Regards

Steven