cancel
Showing results for 
Search instead for 
Did you mean: 

Aikau: How to set rootNode for CategoryTree widget?

npavlov
Confirmed Champ
Confirmed Champ

Hi,

I want a CategoreTree on page but I wish it to render only my category (named: IAP_DEFAULT, you can see my CategoryTree on attached image) and its subcategories. I try to use rootNode parameter, but it doesn't change anything:

{
    name: "alfresco/navigation/CategoryTree",
    config:{
        rootLabel: "Category",
        rootNode: "/cm:categoryRoot/cm:generalclassifiable/cm:IAP_DEFAULT",
        showRoot:false
    }
}

Is it possible to configure default CategoryTree widget or i have to create my own custom widget?

1 ACCEPTED ANSWER

npavlov
Confirmed Champ
Confirmed Champ

You can extend alfresco/navigation/PathTree instead of that.

View answer in original post

1 REPLY 1

npavlov
Confirmed Champ
Confirmed Champ

You can extend alfresco/navigation/PathTree instead of that.