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 cat = ""; var j = 0; var props = new Array(1); var parentFolder = document.parent; for (i in document.properties["cm:categories"]) { props[i] = document.properties["cm:categories"][i]; j++ } for (i in parentFolder.properties["cm:categories"]) { cat=parentFolder.properties["cm:categories"][i]; if (!document.hasAspect("cm:generalclassifiable")) { // ajout de l'aspect classifiable document.addAspect("cm:generalclassifiable"); } props[j] = cat; j++; } document.properties["cm:categories"] = props; document.save();