So im trying to add new tags on my subfolders/files when updating or adding a new tag on the parent folder, im using this code but the tagNodeRef seems to not have the correct information, i cant debugg it since i dont have acess to the aplication itself and cant turn on the javaScript debugger too, any sort of help? thx
var tags = space.properties["cm:taggable"];
for (var i = 0; i < tags.length ; i++){
var tagNodeRef = tags[i];
document.addAspect("cm:taggable");
document.addTag(tagNodeRef);
I think addTag(tag) takes string as the argument and you are passing noderef to it. can you try this
var tags = space.properties["cm:taggable"];
for (var i = 0; i < tags.length ; i++){
var tagNodeRef = tags[i];
document.addAspect("cm:taggable");
document.addTag(tagNodeRef.properties["cm:name"]);
}