HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Base XML commands

Describes the base XML commands for Commerce Manager in Optimizely Customized Commerce 13.

📘

Note

This content does not apply to Customized Commerce versions 14+.

Commerce manager extensively uses XML configuration files to define interfaces and commands. The following commands are available: 

Add

Adds included node to the resulting XML. Use attributes beforeId and afterId to add a node to a specific place in the XML.

<add afterId="Core_System">
      <Link id="Core_CatalogSystem" 
            text="test afterId" 
            order="20" 
            iconUrl="" 
            iconCss="treeIcon" 
            command="cmdCatalogSystemLink">
    </add>

Clear

Removes currently existing nodes from the resulting XML.

Remove

Removes a node with a specified ID from the resulting XML.

<remove nodeId="Core_CatalogSystem" />

Set

Changes the parent element in the resulting XML.

<set name="property_name" value="property_value" />

setAttributes

Changes a set of attributes for the parent element in the resulting XML. This command modifies or adds attributes to the parent element. If the attribute already exists in the parent XML node, it changes the value. Otherwise, it adds a new attribute.

<setAttributes attr1="value1" attr2="value2" />

Load order for XML files

Specify the order in which XML files are loaded. The order is defined in the web.config file in the mediachase.xmlTools section. You can only specify the order by modules/folders. Files inside the module/folder load in random order.

<mediachase.xmlTools>
      <modules>
        <add name="Shell"/>
        <add name="MetaDataBase"/>
        <add name="MetaUI"/>
        <add name="MetaUIEntity"/>
      </modules>
    </mediachase.xmlTools>