ATG 10 BCC Merchandising Customisation
Adding toolbar scope to both Browse and Find view.
Follow the below mentioned Steps.
Step 1: Override the MerchandisingToolbar file.
Path: /config/atg/remote/commerce/toolbar/
Add the following content to file.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE browse-hierarchy
PUBLIC "-//Art Technology Group, Inc.//DTD Asset Manager Browse Hierarchy//EN"
'http://www.atg.com/dtds/toolbar/toolbar_1.0.dtd'>
<toolbar xml-combine="append">
<operation-menu id="authorBrowseOpMenu">
<toolbar-scope asset-area="author" 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="authorFindOpMenu">
<toolbar-scope asset-area="author" 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>
<operation-menu id="bookBrowseOpMenu">
<toolbar-scope asset-area="book" 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="bookFindOpMenu">
<toolbar-scope asset-area="book" 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>
<operation-menu id="addressBrowseOpMenu">
<toolbar-scope asset-area="address" 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="addressFindOpMenu">
<toolbar-scope asset-area="address" 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>
</toolbar>
<!DOCTYPE browse-hierarchy
PUBLIC "-//Art Technology Group, Inc.//DTD Asset Manager Browse Hierarchy//EN"
'http://www.atg.com/dtds/toolbar/toolbar_1.0.dtd'>
<toolbar xml-combine="append">
<operation-menu id="authorBrowseOpMenu">
<toolbar-scope asset-area="author" 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="authorFindOpMenu">
<toolbar-scope asset-area="author" 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>
<operation-menu id="bookBrowseOpMenu">
<toolbar-scope asset-area="book" 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="bookFindOpMenu">
<toolbar-scope asset-area="book" 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>
<operation-menu id="addressBrowseOpMenu">
<toolbar-scope asset-area="address" 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="addressFindOpMenu">
<toolbar-scope asset-area="address" 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>
</toolbar>
BCC screens would look like below.
Toolbar |
Hi, is there a way to hide the "asset" that appears in Create Button on toolbar?
ReplyDeleteThanks in advance
There is one attribute which you need to set in MerchandisingBrowseHierarchy file, which controls the creation of asset in BCC. Let me deep dig and get back to you.
DeleteThanks a lot :) i hope you'll find that solution :)
DeleteHI there is an attribute create-allowed="false" which hide the create option.
ReplyDeletee.g.