Skip to Content
author's profile photo Former Member
Former Member

Backoffice replace type node with navigation node

Hi experts,

I have extended B2BUnit for 2 subtypes - unit1, unit2. In backoffice, for the explorer-tree B2BCommerce I wish to replace B2BUnit type-node with B2BUnit navigation-node containing type-nodes unit1 and unit2.

I tried with the following configuration.

 <context merge-by="module" component="explorer-tree" module="custommodule">
     <explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree">
         <explorer-tree:navigation-node id="hmc.b2bcommercegroup" merge-mode="replace">
             <explorer-tree:type-node code="B2BUnit" id="B2BUnit" merge-mode="remove"/>
             <explorer-tree:navigation-node id="custom.b2bunit">
                 <explorer-tree:type-node code="unit1" id="unit1"/>
                 <explorer-tree:type-node code="unit2" id="unit2"/>
             </explorer-tree:navigation-node>
         </explorer-tree:navigation-node>
     </explorer-tree:explorer-tree>
 </context>

I am able to add a new nagivation-node to B2BCommerce but not able to remove the existing B2BUnit type-node.

Can someone please suggest how this could be achieved.

Regards, Farhan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2017 at 12:21 PM

    Hi,

    For this issue, I suspect that you defined a module with custommodule and the remove will find all corresponding element in all custommodule. Please try without module name again.

    for more details please check : https://help.hybris.com/6.1.0/hcd/8bd51bcd8669101486cec32d579bb2c2.html

    Best

    Nan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.