<?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: Adding and Removing tags with the PHP library in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273979#M227109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Code is not tested there are two ways:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First one via normal library:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$Node-&amp;gt;cm_tags = array("tag1","tag2"); &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;(not sure if it works) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second way via ifresco php lib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$nodeId = "0000-00000-0000-000"; // or $Node-&amp;gt;getId();&lt;BR /&gt;$Tags = array("tag1","tag2");&lt;BR /&gt;$RestTags = new RESTTags($repository,$spacesStore,$session);&lt;BR /&gt;$RestTags-&amp;gt;AddNodeTags($nodeId,$Tags);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;not tested but should work like that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 11:56:25 GMT</pubDate>
    <dc:creator>ddanninger</dc:creator>
    <dc:date>2011-08-01T11:56:25Z</dc:date>
    <item>
      <title>Adding and Removing tags with the PHP library</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273976#M227106</link>
      <description>Is there a way to add and remove tags using just the php library? I have been using the rest-based functions from the Ifresco (http://forge.alfresco.com/projects/ifresco-phplib/) library, but now I have the problem of not being able to remove a tag. Also, if I could add a tag using just the php libr</description>
      <pubDate>Mon, 06 Jun 2011 17:32:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273976#M227106</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-06-06T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and Removing tags with the PHP library</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273977#M227107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well if you dont wanna create a tag via the extended library -&amp;nbsp; ifresco PHP …. which implemented the REST Functionality you can make it another way…. everything in Alfresco is just a Node&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the therory to create a Tag is to add a new tag in "workspace://SpacesStore" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;under /{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}categoryRoot/{http://www.alfresco.org/model/content/1.0}taggable" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}categoryRoot/{http://www.alfresco.org/model/content/1.0}taggable&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which has the Node "workspace://SpacesStore/tag:tag-root" if you create a child node in there of the content type: "cm_category" it should work fine and it should be a tag then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT actually with the basic library you will not be able to remove a Node , because the removeChild functionality is not implemented in the basic library thats why i wrote the ifresco PHP library. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why dont u wanna use the library? Whats the problem at removing a tag?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273977#M227107</guid>
      <dc:creator>ddanninger</dc:creator>
      <dc:date>2011-06-08T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and Removing tags with the PHP library</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273978#M227108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Whats the problem at removing a tag?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;How do you do it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 19:14:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273978#M227108</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-06-08T19:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and Removing tags with the PHP library</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273979#M227109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Code is not tested there are two ways:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First one via normal library:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$Node-&amp;gt;cm_tags = array("tag1","tag2"); &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;(not sure if it works) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second way via ifresco php lib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$nodeId = "0000-00000-0000-000"; // or $Node-&amp;gt;getId();&lt;BR /&gt;$Tags = array("tag1","tag2");&lt;BR /&gt;$RestTags = new RESTTags($repository,$spacesStore,$session);&lt;BR /&gt;$RestTags-&amp;gt;AddNodeTags($nodeId,$Tags);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;not tested but should work like that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 11:56:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-and-removing-tags-with-the-php-library/m-p/273979#M227109</guid>
      <dc:creator>ddanninger</dc:creator>
      <dc:date>2011-08-01T11:56:25Z</dc:date>
    </item>
  </channel>
</rss>

