【问题标题】:In Hybris backoffice how do I add another tab in explorer tree for managing (create, search, delete) instances of some items?在 Hybris 后台,我如何在资源管理器树中添加另一个选项卡以管理(创建、搜索、删除)某些项目的实例?
【发布时间】:2018-09-20 08:59:30
【问题描述】:

在 Hybris Back Office 中,如何在资源管理器树中添加另一个选项卡以管理(创建、搜索、删除)某些项目的实例?

我真的找不到关于这个主题的任何东西。

我需要使用现有的 UI 还是添加我自己的小部件?

【问题讨论】:

    标签: hybris


    【解决方案1】:

    在您的 *-backoffice-config.xml 文件中,您必须添加类似这样的内容

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    
    
    <config xmlns="http://www.hybris.com/cockpit/config"
            xmlns:y="http://www.hybris.com/cockpit/config/hybris"
            xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config"
            xmlns:list-view="http://www.hybris.com/cockpitng/component/listView"
            xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea"
            xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree"
            xmlns:simple-search="http://www.hybris.com/cockpitng/config/simplesearch"
            xmlns:advanced-search="http://www.hybris.com/cockpitng/config/advancedsearch"
            xmlns:df="http://www.hybris.com/cockpitng/component/dynamicForms"
            xmlns:dsb="http://www.hybris.com/cockpitng/config/dashboard"
    >
    
        <context merge-by="module" parent="auto" component="explorer-tree">
            <explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree">
                <explorer-tree:navigation-node id="backoffice.myCustomItemType">
                    <explorer-tree:type-node code="MyCustomItemType" id="MyCustomItemType"/>
                </explorer-tree:navigation-node>
            </explorer-tree:explorer-tree>
        </context>
    
        <context type="MyCustomItemType" component="listview">
            <list:list-view xmlns:list="http://www.hybris.com/cockpitng/component/listView">
                <list:column qualifier="customAttribute1" />
                <list:column qualifier="customAttribute2" />
            </list:list-view>
        </context>
    
    </config>
    

    同样,您可以通过引用任何 OOTB backoffice-config.xml 文件来配置“editorArea”、“advanced-search”、“create-wizard”等。

    查找this document 了解步骤。

    【讨论】:

      猜你喜欢
      • 2021-02-03
      • 2012-09-06
      • 2018-08-05
      • 1970-01-01
      • 2010-10-14
      • 1970-01-01
      • 2021-05-13
      • 1970-01-01
      • 2010-11-26
      相关资源
      最近更新 更多