As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var cats = document.properties["cm:categories"]; //list categories for (var i = 0; i < cats.length ; i++) { var catName = cats[i].name; document.content += "—————>"+catName+"\n"; } //add one category var root_cats = classification.getRootCategories("cm:generalclassifiable"); var cat = root_cats[1]; cats.push(cat); document.properties["cm:categories"] = cats; document.save();
upload.addAspect("cm:generalclassifiable");