cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Backoffice Collection Browser Tree View - Hide specific fields

dbunner
Explorer
0 Kudos
614

Hi experts - I am looking for a way to hide specific subtypes on the collection browser tree view in Backoffice. I know that you can update the attribute descriptor to hide from the UI but want to avoid that. I need these fields/types to display in Backoffice, just not in my specific tree view. See example below for visual:

In the example above I would like to prevent All Subcategories and Subordinate Categories from displaying while in tree-view. Any input will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

dbunner
Explorer

I was able to simplify the Category tree structure by adjusting the tree configuration for this type in our custom-backoffice-config.xml with the following:

  <context type="Category" component="collection-browser-tree" tree-context="_root_">
     <tree:tree-collection-nodes xmlns:tree="http://www.hybris.com/cockpitng/component/treeCollection">            
     <tree:node attribute="code" />
     <tree:node attribute="allSubcategories" />
     <tree:node attribute="products" />
     </tree:tree-collection-nodes>
   </context>


Answers (0)