cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove tree view icon in backoffice

Former Member
0 Kudos

My Requirement Is to remove the tree view icon on list view.. I need only List view Icon . How to Remove tree view icon?

Can anyone help?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member638520
Contributor
0 Kudos

Hi,

To do this you need to add the following configuration:

     <context component="collection-browser" type="GenericItem">
         <cb:collection-browser xmlns:cb="http://www.hybris.com/cockpitng/config/collectionbrowser">
             <cb:available-molds>
                 <cb:mold spring-bean="listViewCollectionBrowserMoldStrategy"/>
             </cb:available-molds>
         </cb:collection-browser>
     </context>

More details you can find here (section Available Molds Configuration) :

Regards,

Lukasz

Former Member
0 Kudos

Hi ,

I tried With following code in Custom-config.xml , but still i see the tree view icon,

 <context component="collection-browser"  type="AbstractOrder">
      <cb:collection-browser xmlns:cb="http://www.hybris.com/cockpitng/config/collectionbrowser">
          <cb:available-molds>
              <cb:mold spring-bean="listViewCollectionBrowserMoldStrategy"/>
          </cb:available-molds>
      </cb:collection-browser>
  </context>


Can you help what went wrong?

former_member638520
Contributor
0 Kudos

Hi,

Try to change component="collection-browser" to component="myCustomCollectionBrowser". Then try to change collectionBrowser setting: collectionBrowserConfigCtx: to myCustomCollectionBrowser

Regards

Lukasz

Former Member
0 Kudos

There's a way to show only the tree-view instead of list-view?? When I try to add only the "treeViewCollectionBrowserMoldStrategy" on Available-molds I've got errors.