Customization in BCC to browse or find custom item descriptor


ContentBrowseHierarchy.xml

Add Below tag to show custom item as child node in home node.


 <browse-item is-root="false" id="home" create-allowed="false" show-count="false" label-resource="node.home.label" icon-resource="node.home.iconSmall" multisite="any" bin="false">

  <browse-item is-root="false" create-allowed="false" show-count="false" multisite="any" bin="false" reference-id="Quiz"/>

</browse-item>

Add below tags to display custom items in browse panel and should be able to browse.
'Quiz' is item descriptor. Those will be displayed in browse panel.

<!-- Quiz -->

    <browse-item is-root="true" id="quiz" create-allowed="true" show-count="false" label-resource="node.quiz.label" icon-resource="node.quiz.label" multisite="any" bin="false">

        <list-definition show-count-on-header="false" id="allQuiz" set-site-context-on-drilldown="false" retriever="query" visible="true" allow-drilldown="true" show-count-on-children="false" show-header="conditionally" allow-load="true" allow-circular-reference="false" child-type="/atg/commerce/catalog/MerchandisingProductCatalog:Quiz">
            <retriever-parameter name="query" value="ALL"/>
        </list-definition>
    </browse-item>

ContentFindConfiguration.xml

Add below tags to display custom items in find panel and should be able to find these items in find.

 <asset-type
            id="Quiz"
            site-filtering="true">
            <enable-default-query>true</enable-default-query>
            <enable-filter-as-you-type>true</enable-filter-as-you-type>
            <repository-path>/atg/commerce/catalog/MerchandisingProductCatalog</repository-path>
            <repository-item-type>Quiz</repository-item-type>
        </asset-type>

ContentToolbar.xml

Add below tags to edit,delete,addToProject,Duplicate assets or items while finding or browsing. Should be able to do all below operations on those items.This will be used to display control buttons in toolbar while you are navigating through browse item.
Buttons like add, edit, delete, move, duplicate etc. can be controlled through this xml.

<operation-menu id="QuizBrowseMenu">
        <toolbar-scope asset-area="Quiz"
        pane-id="browse"/>
        <operation-menu-item id="edit" />
        <operation-menu-item divider="true" />
        <operation-menu-item id="duplicate" />
        <operation-menu-item id="delete" />
        <operation-menu-item divider="true" />
        <operation-menu-item id="addToProject" />
        <operation-menu-item id="export" />
    </operation-menu>
    
    <operation-menu id="QuizFindMenu">
        <toolbar-scope asset-area="Quiz"
        pane-id="find"/>
        <operation-menu-item id="edit" />
        <operation-menu-item divider="true" />
        <operation-menu-item id="duplicate" />
        <operation-menu-item id="delete" />
        <operation-menu-item divider="true" />
        <operation-menu-item id="addToProject" />
        <operation-menu-item id="export" />
    </operation-menu>

Please find new item descriptor (Quiz) appearing on home panel.



Below image for find panel

Comments

Popular posts from this blog

how to generate classes from swagger

How to create new user/account in BCC