Question

This is a long shot, but I'm kind of stuck here. I need to be able to add a new category to Alfresco (programatically).

I suppose I should use cm:categoryRoot/cm:generalclassifiable/ as parent, but I don't know how to add a new node as a category.

Any help would be great.

Was it helpful?

Solution

As per the official documentation:

Nodes can be created [...] of type cm:category and child association type cm:subcategories

Normal cm:category nodes can be created under the /cm:category_root/cm:generalclassifiable/** tree using the cm:subcategories association type to create new categories under the cm:generalclassfiable classification. As such, any node creation service will be available to create new categories.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top