<?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 get tag modification date in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256978#M210108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After being introduced to the awesome Javascript console by Jeff Potts in my earlier post, its much easier to script in Alfresco; Thanks Jeff and Florian.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was playing around with the tagging API and I just wanted to know if there is a way to get information about when a tag was modified /added to the system via. the javascript api; like the Tag Browser interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't found any reference in the API; I am welcome to other ideas or suggestions to get this info. as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot again for all the help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 20:58:04 GMT</pubDate>
    <dc:creator>jackjm</dc:creator>
    <dc:date>2012-04-11T20:58:04Z</dc:date>
    <item>
      <title>get tag modification date</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256978#M210108</link>
      <description>After being introduced to the awesome Javascript console by Jeff Potts in my earlier post, its much easier to script in Alfresco; Thanks Jeff and Florian.I was playing around with the tagging API and I just wanted to know if there is a way to get information about when a tag was modified /added to t</description>
      <pubDate>Wed, 11 Apr 2012 20:58:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256978#M210108</guid>
      <dc:creator>jackjm</dc:creator>
      <dc:date>2012-04-11T20:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: get tag modification date</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256979#M210109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make use of the fact that tags are actually nothing other than categories, which are exposed via the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Classification_API" rel="nofollow noopener noreferrer"&gt;classification root object&lt;/A&gt;&lt;SPAN&gt; in the JavaScript API. Categories are themselves just content nodes with the same basic properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As tags are all maintained as top level categories of the cm:taggable aspect, you can retrieve all tags by using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var tags = classification.getRootCategories("cm:taggable");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course this is a lot of data if you only want to check one or two specific tags. You can also retrieve dedicated tags via a Lucene query for the category nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var tagNodes = search.query({query: '+PATH:"/cm:taggable/*" +@cm\:name:"tagName"'});&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative way would be to directly access the tag category nodes of a document via the properties map instead of the getTags() function, e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var tagNodes = document.properties["cm:taggable"];&lt;BR /&gt;if (tagNodes != null) {&lt;BR /&gt;&amp;nbsp; for(var idx = 0, max = tagNodes.length; idx &amp;lt; max; idx++){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.getSystem().out("Tag " + tagNodes[idx].name + " modified at " + tagNodes[idx].properties["cm:modified"]);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:06:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256979#M210109</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-04-11T22:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: get tag modification date</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256980#M210110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it helps a lot. Thank you very much Axel for the detailed answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 16:12:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-tag-modification-date/m-p/256980#M210110</guid>
      <dc:creator>jackjm</dc:creator>
      <dc:date>2012-04-13T16:12:02Z</dc:date>
    </item>
  </channel>
</rss>

