<?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: Create rule to a folder with Javascript for tagging file with Tags present on subfolder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114680#M31851</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80805"&gt;@DoZi&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be helpful to take a look at the &lt;A href="https://docs.alfresco.com/community/references/API-JS-ScriptNode-Tagging.html" target="_self" rel="nofollow noopener noreferrer"&gt;tagging api&lt;/A&gt;. There are also a few solutions to similar problems here on the Hub - see &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-can-i-get-a-path-of-folder-and-sub-folder-in-a-site/m-p/190214#M10708" target="_self" rel="nofollow noopener noreferrer"&gt;one&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/rename-document-with-custom-model-with-javascript/td-p/294061" target="_self" rel="nofollow noopener noreferrer"&gt;two&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/set-tag-on-folder-name-custom-folder-model/td-p/297457" target="_self" rel="nofollow noopener noreferrer"&gt;three&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/add-labels-through-javascript/td-p/171425" target="_self" rel="nofollow noopener noreferrer"&gt;four&lt;/A&gt; and &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-get-tags-of-my-document/td-p/168503" target="_self" rel="nofollow noopener noreferrer"&gt;five&lt;/A&gt;. These might provide the basis of a solution you can craft.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 16:49:00 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2020-11-30T16:49:00Z</dc:date>
    <item>
      <title>Create rule to a folder with Javascript for tagging file with Tags present on subfolder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114679#M31850</link>
      <description>&lt;P&gt;Hi i want to create in my site a rule with javascript that make this.&lt;/P&gt;&lt;P&gt;i create in the document root 4 folder that would have the rules that each file that was created or uploaded will be tagged with the tag of the subfolder that they belongs.&lt;/P&gt;&lt;P&gt;I'm newbie and i don't know about alfresco with javascript ...&amp;nbsp;I create a simple js file in Dictionary and i associate this to the rule and work ( i find a little example on internet --- i make an array with 3 tag in js and add this to the file).&lt;/P&gt;&lt;P&gt;I don't know how to find methods, how to get subfolder tags...&lt;/P&gt;&lt;P&gt;Please can someone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone can help me with this task and i take this like example for other task, please? THX&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:22:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114679#M31850</guid>
      <dc:creator>DoZi</dc:creator>
      <dc:date>2020-11-30T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create rule to a folder with Javascript for tagging file with Tags present on subfolder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114680#M31851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80805"&gt;@DoZi&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be helpful to take a look at the &lt;A href="https://docs.alfresco.com/community/references/API-JS-ScriptNode-Tagging.html" target="_self" rel="nofollow noopener noreferrer"&gt;tagging api&lt;/A&gt;. There are also a few solutions to similar problems here on the Hub - see &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-can-i-get-a-path-of-folder-and-sub-folder-in-a-site/m-p/190214#M10708" target="_self" rel="nofollow noopener noreferrer"&gt;one&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/rename-document-with-custom-model-with-javascript/td-p/294061" target="_self" rel="nofollow noopener noreferrer"&gt;two&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/set-tag-on-folder-name-custom-folder-model/td-p/297457" target="_self" rel="nofollow noopener noreferrer"&gt;three&lt;/A&gt;, &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/add-labels-through-javascript/td-p/171425" target="_self" rel="nofollow noopener noreferrer"&gt;four&lt;/A&gt; and &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-get-tags-of-my-document/td-p/168503" target="_self" rel="nofollow noopener noreferrer"&gt;five&lt;/A&gt;. These might provide the basis of a solution you can craft.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:49:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114680#M31851</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-11-30T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create rule to a folder with Javascript for tagging file with Tags present on subfolder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114681#M31852</link>
      <description>&lt;P&gt;Hi, thx for your answer,&lt;/P&gt;&lt;P&gt;i have red everything but i have another question, can i know which tag was removed from a folder and in the child document remove only this one ...&lt;/P&gt;&lt;P&gt;can i compare tags between two node...&lt;/P&gt;&lt;P&gt;can i know what tags are addes or are removed&lt;/P&gt;&lt;P&gt;Please, let me know and THX&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 13:45:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114681#M31852</guid>
      <dc:creator>DoZi</dc:creator>
      <dc:date>2020-12-03T13:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create rule to a folder with Javascript for tagging file with Tags present on subfolder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114682#M31853</link>
      <description>&lt;P&gt;You can try follwoing&amp;nbsp;methods&lt;/P&gt;&lt;PRE&gt;tags = document.tags; // gets document tags
folder.childrenByTags("tag"); gets all children of this node that have the tag specified.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;of Tagging API&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 02:56:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-rule-to-a-folder-with-javascript-for-tagging-file-with/m-p/114682#M31853</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-12-04T02:56:15Z</dc:date>
    </item>
  </channel>
</rss>

