Rearranging the contents of a properties view
You can rearrange the contents within a Management Center properties view. For example, you can move tabs, sections, or widgets within a properties view to suit your business needs.
Before you begin
- wcfObjectProperties
- The base class for all properties views.
- wcfPropertyPane
- The content view for a properties view.
- wcfPropertyTabs
- Used when a properties view has multiple tabs.
- wcfPropertyGroup
- Used to organize widgets within a pane.
- wcfPropertiesComponent
- The base class for all properties view widgets.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Complete one of the following steps:
- In the Enterprise Explorer view, expand , where Management_Center_component is the name of the tool you want to customize.
- In the Enterprise Explorer view, expand , where Management_Center_component is the name of the tool you want to customize.
- Open the file that contains the properties view declaration that you want to change.
- Rearrange the contents of the properties view:
Option Description Change the order of tabs within a properties view Locate the wcfPropertyTabs element and change the order of the wcfPropertyTabPane tags. For example, in the Category properties view, the Manage Category tab appears before the Associated Assets tab: <class name="catCategoryProperties" extends="wcfObjectProperties"> <wcfPropertyTabs name="tabs"> <wcfPropertyTabPane name="manageCategoryTab" text="Manage Category"> <catManageCategory/> </wcfPropertyTabPane> <wcfPropertyTabPane name="manageAttachmentTab" text="Associated Assets"> <catManageAttachment/> </wcfPropertyTabPane> </wcfPropertyTabs> </class>
To move the Manage Category tab to appear after the Associated Assets tab, change the order of the wcfPropertyTabPane elements:<class name="catCategoryProperties" extends="wcfObjectProperties"> <wcfPropertyTabs name="tabs"> <wcfPropertyTabPane name="manageAttachmentTab" text="Associated Assets"> <catManageAttachment/> </wcfPropertyTabPane> <wcfPropertyTabPane name="manageCategoryTab" text="Manage Category"> <catManageCategory/> </wcfPropertyTabPane> </wcfPropertyTabs> </class>
Change the order of tabs within a properties view Locate the PropertyTabs element and change the order of the PropertyTabPane tags. For example, in the Category properties view, the Manage Category tab appears before the Associated Assets tab: <ObjectProperties definitionName="catCategoryProperties"> <PropertyTabs name="tabs"> <PropertyTabPane name="manageCategoryTab" text="Manage Category"> <PropertyPane baseDefinitionName="catManageCategory"/> </PropertyTabPane> <PropertyTabPane name="manageAttachmentTab" text="Associated Assets"> <PropertyPane baseDefinitionName="catManageAttachment"/> </PropertyTabPane> </PropertyTabs> </ObjectProperties>
To move the Manage Category tab to appear after the Associated Assets tab, change the order of the PropertyTabPane elements:<ObjectProperties definitionName="catCategoryProperties"> <PropertyTabs name="tabs"> <PropertyTabPane name="manageAttachmentTab" text="Associated Assets"> <PropertyPane baseDefinitionName="catManageAttachment"/> </PropertyTabPane> <PropertyTabPane name="manageCategoryTab" text="Manage Category"> <PropertyPane baseDefinitionName="catManageCategory"/> </PropertyTabPane> </PropertyTabs> </ObjectProperties>
Change the order of collapsible sections within a properties view Locate the wcfPropertyPane element and change the order of the child wcfPropertyGroup elements. For example, in the Manage Category pane, the generalInfoPropGrp
property group appears before thedisplayPropGroup
property group:<class name="catManageCategory" extends="wcfPropertyPane"> <wcfPropertyGroup name="generalInfoPropGrp" open="true" groupTitle="${catalogResources.generalCategoryInformationSection.string}"> ... </wcfPropertyGroup> <wcfPropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection.string}"> ... </wcfPropertyGroup> </class>
To change the order of the groups in the Manage Category pane, move thegeneralInfoPropGrp
property group after thedisplayPropGroup
property group:<class name="catManageCategory" extends="wcfPropertyPane"> <wcfPropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection.string}"> ... </wcfPropertyGroup> <wcfPropertyGroup name="generalInfoPropGrp" open="true" groupTitle="${catalogResources.generalCategoryInformationSection.string}"> ... </wcfPropertyGroup> </class>
Change the order of collapsible sections within a properties view Locate the PropertyPane element and change the order of the child PropertyGroup elements. For example, in the Manage Category pane, the generalInfoPropGrp
property group appears before thedisplayPropGroup
property group:<PropertyPane definitionName="catManageCategory"> <PropertyGroup name="generalInfoPropGrp" open="true" groupTitle="${catalogResources.generalCategoryInformationSection}"> ... </PropertyGroup> <PropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection}"> ... </PropertyGroup> </PropertyPane>
To change the order of the groups in the Manage Category pane, move thegeneralInfoPropGrp
property group after thedisplayPropGroup
property group:<PropertyPane definitionName="catManageCategory"> <PropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection}"> ... </PropertyGroup> <PropertyGroup name="generalInfoPropGrp" open="true" groupTitle="${catalogResources.generalCategoryInformationSection}"> ... </PropertyGroup> </PropertyPane>
Change the order of properties view widgets within a group Locate the wcfPropertyGroup element and change the order of the child properties component elements. In the following example, the Display to customer check box appears before the thumbnail image editor: <wcfPropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection.string}"> <wcfPropertyCheckbox trueValue="1" falseValue="0" propertyName="xdesc_published" objectPath="CatalogGroupDescription" promptText="${catalogResources.displayToCustomerPrompt.string}" extendedHelpText="${catalogResources.extendedHelpText_displayToCustomers.string}"/> <wcfImageEditor promptText="${catalogResources.thumbnailPrompt.string}" objectPath="CatalogGroupDescription" propertyName="tImage"/> <wcfImageEditor promptText="${catalogResources.fullImagePrompt.string}" objectPath="CatalogGroupDescription" propertyName="fImage"/> </wcfPropertyGroup>
To change the order and move the check box to appear after the thumbnail image editor, move the check box element after the thumbnail image editor element:<wcfPropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection.string}"> <wcfImageEditor promptText="${catalogResources.thumbnailPrompt.string}" objectPath="CatalogGroupDescription" propertyName="tImage"/> <wcfPropertyCheckbox trueValue="1" falseValue="0" propertyName="xdesc_published" objectPath="CatalogGroupDescription" promptText="${catalogResources.displayToCustomerPrompt.string}" extendedHelpText="${catalogResources.extendedHelpText_displayToCustomers.string}"/> <wcfImageEditor promptText="${catalogResources.fullImagePrompt.string}" objectPath="CatalogGroupDescription" propertyName="fImage"/> </wcfPropertyGroup>
Change the order of properties view widgets within a group Locate the PropertyGroup element and change the order of the child properties component elements. In the following example, the Display to customer check box appears before the thumbnail image editor: <PropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection}"> <PropertyCheckbox trueValue="1" falseValue="0" propertyName="xdesc_published" objectPath="CatalogGroupDescription" promptText="${catalogResources.displayToCustomerPrompt}" extendedHelpText= "${catalogResources.extendedHelpText_displayToCustomers}"/> <ImageEditor promptText="${catalogResources.thumbnailPrompt}" objectPath="CatalogGroupDescription" propertyName="tImage"/> <ImageEditor promptText="${catalogResources.fullImagePrompt}" objectPath="CatalogGroupDescription" propertyName="fImage"/> </PropertyGroup>
To change the order and move the check box to appear after the thumbnail image editor, move the check box element after the thumbnail image editor element:<PropertyGroup name="displayPropGroup" groupTitle="${catalogResources.displaySection}"> <ImageEditor promptText="${catalogResources.thumbnailPrompt}" objectPath="CatalogGroupDescription" propertyName="tImage"/> <PropertyCheckbox trueValue="1" falseValue="0" propertyName="xdesc_published" objectPath="CatalogGroupDescription" promptText="${catalogResources.displayToCustomerPrompt}" extendedHelpText= "${catalogResources.extendedHelpText_displayToCustomers}"/> <ImageEditor promptText="${catalogResources.fullImagePrompt}" objectPath="CatalogGroupDescription" propertyName="fImage"/> </PropertyGroup>
What to do next
Version | Steps |
---|---|
|
|
|