You are here

getRootCategories

getRootCategories(aspect) returns an array of root category nodes for a given classification.

Parameters

aspect
The classification aspect.

Returns

Array of root category nodes.

Example

    model.catnodes = classification.getRootCategories("cm:generalclassifiable");    
  

The previous code snippet would return category node names such as:

Software Document Classification

Languages

Regions

Tags    
  

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.