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

Tab displayed only in cockpit not administration.

Former Member
0 Likes
689

Hello. I'm using Hybris 6.4.0.7 and here is more detailed. Is there any way to hide a tab for the administration backoffice. What i mean: For products, in product cockpit one of the tabs is "pjg non sap att". But this tab is also displayed when i acces the product information from administration section. Is there any way to hide this one from administration and only make it visible for product cockpit.

In image 1 you can see "PJG NON SAP ATTS" which is defined in pjlbackoffice-backoffice-config.xml.

But the same attribute is displayed in Product Cockpit too. It's possible to see it only in cockpit and not in administration.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Thanks Jacek. I've tryed this solution and it works.

The only "problem" is that now tab list entries are ordered in a different way. In cockpit the tab list is Admin, properties, prices etc and in admin tools is prices,admin,properties jeje.

When i solve this i'll upload the solution it this happens to anybody else.

former_member625836
Active Contributor
0 Likes

Hi ,

Both Product Cockpit and Adminstration uses the same Editor Area configuration. What you could do (I didn't test it, but should work) is to change a component name for Editor Area in Administration:

     <widget-extension widgetId="editorArea">
         <setting key="editorAreaConfigCtx" type="String">admin-editor-area</setting>
     </widget-extension>

and then remove this tab for this component, but still pointing to previous one:

     <context type="Product" component="admin-editor-area" merge-by="component" parent="editor-area">
         <ea:editorArea name="" xmlns:ea="http://www.hybris.com/cockpitng/component/editorArea">
             <ea:tab name="tab-to-remove-name" merge-mode="REMOVE"/>
         </ea:editorArea>
     </context>

Please bear in mind that if you have some configurations specific to principal, you would have to repeat this snippet for each such configuration, as there is no way of merging configuration in multiple dimensions, i.e.:

     <context type="Product" component="admin-editor-area" principal="some-principal" merge-by="component" parent="editor-area">
         <ea:editorArea name="" xmlns:ea="http://www.hybris.com/cockpitng/component/editorArea">
             <ea:tab name="tab-to-remove-name" merge-mode="REMOVE"/>
         </ea:editorArea>
     </context>

I hope it works 🙂

Cheers, Jacek