<?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: Using Document templates - chaning file name during document creation based on a template file in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19392#M8565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what/how I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a node template by uploading an MS WORD file with the name of Template.doc&lt;/LI&gt;&lt;LI&gt;In a site/folder I selected: create document based on a model and selected the Template.doc file&lt;/LI&gt;&lt;LI&gt;Alfresco created the document in the folder and called it Template.doc&lt;/LI&gt;&lt;LI&gt;Selected the document and used the Modify in MS Word menu&lt;/LI&gt;&lt;LI&gt;The file opened in MS WORD where I did the modification&lt;/LI&gt;&lt;LI&gt;Then I had to save the file with the proper file name, so I used SAVE AS, selected the folder in Alfresco, created a new name, and saved the document&lt;/LI&gt;&lt;LI&gt;Once Alfresco is refreshed, I got two files. The 1st one is the one with the name of Template.doc, the 2nd one is the file with the proper name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only method - before your reply - I found is the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Create the file from the Template.doc&lt;/LI&gt;&lt;LI&gt;Select Edit properties&lt;/LI&gt;&lt;LI&gt;Change the name property to the right one&lt;/LI&gt;&lt;LI&gt;Select the Edit in MS Word option&lt;/LI&gt;&lt;LI&gt;Do the modifications then save the file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked so far on the test I did, but I will try now your idea as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zsolt Putnoky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 12:20:25 GMT</pubDate>
    <dc:creator>zputnoky</dc:creator>
    <dc:date>2017-06-23T12:20:25Z</dc:date>
    <item>
      <title>Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19390#M8563</link>
      <description>Dear All,Trying to create a set of department wide (or process related) templates to make sure that our docs are unified and we can use Alfresco features as much as possible.Created a WORD file and uploaded into to ./repository/data dictionary/node templates. Then used the create document from a mod</description>
      <pubDate>Thu, 22 Jun 2017 06:55:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19390#M8563</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-06-22T06:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19391#M8564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand how your users are changing the file name that results in a new file. Renaming a file will change the name on the original and not create a new file at all. Only if users - for some reason - download the file, rename and then re-upload it will a second file be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default there is no&amp;nbsp;option to automatically rename a file when creating it from a template. But you could set up a folder rule that conditionally renames the file when it has the "copiedFrom" aspect and a "source" document that is contained in the data dictionary - node templates folder. You would have to write a small JavaScript file for this and place it in the data dictionary - scripts folder to be selectable in the "Manage Rules" action where you can set "Execute a script" as an action for new files to be created in a specific folder tree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 08:56:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19391#M8564</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-23T08:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19392#M8565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what/how I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a node template by uploading an MS WORD file with the name of Template.doc&lt;/LI&gt;&lt;LI&gt;In a site/folder I selected: create document based on a model and selected the Template.doc file&lt;/LI&gt;&lt;LI&gt;Alfresco created the document in the folder and called it Template.doc&lt;/LI&gt;&lt;LI&gt;Selected the document and used the Modify in MS Word menu&lt;/LI&gt;&lt;LI&gt;The file opened in MS WORD where I did the modification&lt;/LI&gt;&lt;LI&gt;Then I had to save the file with the proper file name, so I used SAVE AS, selected the folder in Alfresco, created a new name, and saved the document&lt;/LI&gt;&lt;LI&gt;Once Alfresco is refreshed, I got two files. The 1st one is the one with the name of Template.doc, the 2nd one is the file with the proper name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only method - before your reply - I found is the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;Create the file from the Template.doc&lt;/LI&gt;&lt;LI&gt;Select Edit properties&lt;/LI&gt;&lt;LI&gt;Change the name property to the right one&lt;/LI&gt;&lt;LI&gt;Select the Edit in MS Word option&lt;/LI&gt;&lt;LI&gt;Do the modifications then save the file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked so far on the test I did, but I will try now your idea as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zsolt Putnoky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:20:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19392#M8565</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-06-23T12:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19393#M8566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first approach you tried is absolutely the wrong one to use. You are &lt;STRONG&gt;explicitly&lt;/STRONG&gt; creating a new document by using the "Save As" feature in MS Word. The &amp;nbsp;second approach you described is the correct one to use - rename the file within the Alfresco UI.&lt;/P&gt;&lt;P&gt;The approach using a rule is just an automation / simplification for users, and requires that you have some kind of logic that defines what the new file name should be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:37:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19393#M8566</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-23T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19394#M8567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the confirmation Axel, I will update the user guide as such, then we will see how can I create the file name by concatenating several document properties, that would be even better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:44:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19394#M8567</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-06-23T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19395#M8568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to the thread, what I have done once was to customize the "Create from template" action and force it to show the edit-metadata form just after the document got created, and by doing so, the users were able to just change the &amp;nbsp;properties as they wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:45:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19395#M8568</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-06-28T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19396#M8569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share what have you done with the Create from Template action to show the property form? I have a new idea to implement: we have a contract folder type. this folder has few custom attributes, two of those are dates, basically close out dates. The idea is the following: when the user creates the folder, he/she has to provide the values for these properties. then Alfresco sends an email to a predefined group of user with the email subject formated to store few of the custom properties. A rule + script at outlook checks the incoming mail and if the sender is Alfresco and the subject is formated a certain way, the rule creates a calendar (or task) item and deletes the mail. the outlook part is okay, made it work, however I have some issues at Alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is to force the property at upload time and send the mail when the save/create button is hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got what I plan to do, not sure it is clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your code might be able to help to fire the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zsolt Putnoky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:50:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19396#M8569</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-06-30T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19397#M8570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I can share the code with you, but not in the next few days, as I am too busy with other projects.&lt;/P&gt;&lt;P&gt;I will have to dig into the project's code to take that part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;My idea is to force the property at upload time&lt;/STRONG&gt;, you can use the uploader-plus addon &lt;A class="link-titled" href="https://github.com/softwareloop/uploader-plus" title="https://github.com/softwareloop/uploader-plus" rel="nofollow noopener noreferrer"&gt;GitHub - softwareloop/uploader-plus: An Alfresco uploader that prompts for metadata&lt;/A&gt;&amp;nbsp;. It does exactly that.&lt;/P&gt;&lt;P&gt;And following, for &lt;STRONG&gt;and send the mail when the save/create button is hit.&lt;/STRONG&gt; I don't think it is a good idea to attach that event into the UI. It would be better to work on the server level, using a folder rule or even behaviours to act when the save is executed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I guess your code might be able to help to fire the email.&lt;/STRONG&gt; Again, my code is not the ideal trigger for this case. Consider the last paragraph information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19397#M8570</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-07-05T14:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Document templates - chaning file name during document creation based on a template file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19398#M8571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware of the Uploader Plus add-on, tested it...but, at config time I should specify the upload folder. In our case, the folders are created ad hoc in various sites as the project is advancing. I am not able to predefine the upload folder in advance. One of the option would be to use a default upload folder, then a rule to distribute the documents into the right folders based on their meta data, but I am not sure this would be acceptable for the users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:39:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-document-templates-chaning-file-name-during-document/m-p/19398#M8571</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-07-05T14:39:18Z</dc:date>
    </item>
  </channel>
</rss>

