11-16-2010 11:38 AM
$contentNode->addAspect("cm_titled");
$contentNode->addAspect("cm_versionable");
$contentNode->addAspect("cm_taggable");
$contentNode->addAspect("{http://www.someco.com/model/content/1.0}webable");
$contentNode->addAspect("{http://www.someco.com/model/content/1.0}productRelated");
$tags = array("alfresco", "invoice");
$contentNode->addAspect("cm_taggable");
$contentNode->addTags($tags);
04-06-2011 11:54 AM
$tags = array("workspace://SpacesStore/0000-00000-00000-00","workspace://SpacesStore/0000-00000-00000-00");
$contentNode->cm_taggable = $tags;
$RESTTags = new RESTTags($repository, $store, $session);
$RESTTags->AddNodeTags($contentNode->getId(),array("alfresco", "invoice"));
05-31-2011 12:29 PM
but the way in the normal API is to search a Tag first if it exists or you already have the NodeRef of the Tag.
05-31-2011 01:05 PM
05-31-2011 05:48 PM
$tags = array("test","tag");
$node->cm_taggable = $tags;
and it doesn't actually go into Alfresco and the only pertinent message I get is the following:Notice: Array to string conversion in C:\xampp\php\PEAR\Alfresco\Service\WebService\AlfrescoWebService.php on line 59
06-08-2011 05:40 AM
$Tags = array("tag1","tag2");
$nodeId = "00000-0000-00000-00"; // no workspace://SpacesStore
$RestTags = new RESTTags($repository,$spacesStore,$session);
$RestTags->AddNodeTags($nodeId,$Tags);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.