Hiding attributes that are not contained in the attribute dictionary
If
you plan to use only the attribute dictionary
in Management Center to manage attributes, you can hide all attributes
that are not contained within the attribute dictionary in the Management
Center catalogs tool.
Before you begin
Procedure
- Enable the attribute dictionary.
- Open WebSphere Commerce Developer.
- Open the Java EE perspective and select the Enterprise Explorer view.
- Complete one of the following steps:
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > catalog > propertiesViews; then open the CatalogPropertyPane.lzx file. Note: Three classes will be modified: catCatalogEntryDescriptiveAttributes, catSKUAttributes and catCatalogEntryDefiningAttributes.
- In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > catalog > propertiesViews; then open the
CatalogPropertyPane.def file. Note: Three definitions will be modified: catCatalogEntryDescriptiveAttributes, catSKUAttributes and catCatalogEntryDefiningAttributes.
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > catalog > propertiesViews; then open the CatalogPropertyPane.lzx file.
- In catCatalogEntryDescriptiveAttributes,
comment out the
property group named catCatalogEntryDescriptiveAttributesPropertyGroup,
by changing:
to:<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a catalog entry. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. --> <wcfPropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <catCatalogEntryDescriptiveAttributeList/> </wcfPropertyGroup>
<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a catalog entry. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. <wcfPropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <catCatalogEntryDescriptiveAttributeList/> </wcfPropertyGroup> -->
to:<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a catalog entry. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if creating non-dictionary attributes is desired. --> <PropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <!-- Enable if the product has classic descriptive attributes or the store does not use an attribute dictionary. --> <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <ProductHasClassicDescriptiveAttributesEnablementCondition package="cat"/> </EnablementOrCondition> <!-- An instantiation of a class which contains a Child List Editor to display non-dictionary descriptive attributes. --> <PropertyChildListEditor baseDefinitionName="catCatalogEntryDescriptiveAttributeList"/> </PropertyGroup>
<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a catalog entry. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if creating non-dictionary attributes is desired. <PropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <!-- Enable if the product has classic descriptive attributes or the store does not use an attribute dictionary. <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <ProductHasClassicDescriptiveAttributesEnablementCondition package="cat"/> </EnablementOrCondition> <!-- An instantiation of a class which contains a Child List Editor to display non-dictionary descriptive attributes. <PropertyChildListEditor baseDefinitionName="catCatalogEntryDescriptiveAttributeList"/> </PropertyGroup> -->
- In catCatalogEntryDefiningAttributes,
comment out the property
group named catCatalogEntryDefiningAttributesPropertyGroup by changing:
to:<!-- Property Group: A properties group to display local defining attributes for a product. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. --> <wcfPropertyGroup collapsable="false" name="catCatalogEntryDefiningAttributesPropertyGroup"> <!-- An enablement condition that evaluates to true if 'catalogEntryHasAttributeDictionaryDefiningAttributes' is '' (empty string). --> <wcfEnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes" enablementValue=""/> <<!-- An instantiation of a class which contains a Child List Editor to display non-dictionary defining attributes. --> <catCatalogEntryDefiningAttributeList/> </wcfPropertyGroup>
<!-- Property Group: A properties group to display local defining attributes for a product. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. <wcfPropertyGroup collapsable="false" name="catCatalogEntryDefiningAttributesPropertyGroup"> <wcfEnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes" enablementValue=""/> <catCatalogEntryDefiningAttributeList/> </wcfPropertyGroup> -->
to:<!-- Property Group: A properties group to display local defining attributes for a product. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. --> <PropertyGroup collapsable="false" name="catCatalogEntryDefiningAttributesPropertyGroup"> <!-- Enable if the product has classic defining attributes and no AD defining attributes or the store does not use an attribute dictionary. --> <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <EnablementAndCondition> <EnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" enablementValue="true" objectPath="CatalogEntryAttributeDictionaryDefiningAttributeProperties" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes" negate="true"/> <ProductHasClassicDefiningAttributesEnablementCondition package="cat"/> </EnablementAndCondition> </EnablementOrCondition> <!-- An instantiation of a class which contains a Child List Editor to display non-dictionary defining attributes. --> <PropertyChildListEditor baseDefinitionName="catCatalogEntryDefiningAttributeList"/> </PropertyGroup>
<!-- Property Group: A properties group to display local defining attributes for a product. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. <PropertyGroup collapsable="false" name="catCatalogEntryDefiningAttributesPropertyGroup"> <!-- Enable if the product has classic defining attributes and no AD defining attributes or the store does not use an attribute dictionary. <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <EnablementAndCondition> <EnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" enablementValue="true" objectPath="CatalogEntryAttributeDictionaryDefiningAttributeProperties" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes" negate="true"/> <ProductHasClassicDefiningAttributesEnablementCondition package="cat"/> </EnablementAndCondition> </EnablementOrCondition> <!-- An instantiation of a class which contains a Child List Editor to display non-dictionary defining attributes. <PropertyChildListEditor baseDefinitionName="catCatalogEntryDefiningAttributeList"/> </PropertyGroup> -->
- In catSKUAttributes,
comment out the property group named
catCatalogEntryDescriptiveAttributesPropertyGroup by changing:
to:<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a SKU. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. --> <wcfPropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <!-- An instantiation of a class which contains a Child List Editor to display non-dictionary descriptive attributes. --> <catCatalogEntryDescriptiveAttributeList/> </wcfPropertyGroup>
<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a SKU. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if viewing non-dictionary attributes is not desired. <wcfPropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <catCatalogEntryDescriptiveAttributeList/> </wcfPropertyGroup> -->
to:<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a SKU. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if creating non-dictionary attributes is desired. --> <PropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <!-- Enable if the product has classic descriptive attributes or the store does not use an attribute dictionary. --> <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <ProductHasClassicDescriptiveAttributesEnablementCondition package="cat"/> </EnablementOrCondition> <PropertyChildListEditor baseDefinitionName="catCatalogEntryDescriptiveAttributeList"/> </PropertyGroup>
<!-- Property Group: A properties group to display non-dictionary descriptive attributes for a SKU. ATTRIBUTE DICTIONARY CUSTOMIZATION POINT: comment out the property group below if creating non-dictionary attributes is desired. <PropertyGroup collapsable="false" name="catCatalogEntryDescriptiveAttributesPropertyGroup"> <!-- Enable if the product has classic descriptive attributes or the store does not use an attribute dictionary. <EnablementOrCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled" negate="true"/> <ProductHasClassicDescriptiveAttributesEnablementCondition package="cat"/> </EnablementOrCondition> <PropertyChildListEditor baseDefinitionName="catCatalogEntryDescriptiveAttributeList"/> </PropertyGroup> -->
- In
catSKUAttributes, find the property
group named catCatalogEntryDefiningDictionaryAttributesPropertyGroup
and comment out the enablement condition by changing:
to:<PropertyGroup collapsable="false" name="catCatalogEntryDefiningDictionaryAttributesPropertyGroup"> <!-- Enable if the product has no classic defining attributes or has classic and AD defining attributes and the store uses an attribute dictionary. --> <EnablementAndCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled"/> <EnablementOrCondition> <EnablementAndCondition conditionId="1"> <EnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" enablementValue="true" objectPath="CatalogEntryAttributeDictionaryDefiningAttributeProperties" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes"/> <ProductHasClassicDefiningAttributesEnablementCondition package="cat"/> </EnablementAndCondition> <EnablementAndCondition conditionId="2"> <ProductHasClassicDefiningAttributesEnablementCondition package="cat" negate="true"/> </EnablementAndCondition> </EnablementOrCondition> </EnablementAndCondition> <!-- An instantiation of a class which contains a Child List Editor to display local product defining attributes. --> <PropertyChildListEditor baseDefinitionName="catCatalogEntryAttributeDictionaryDefiningAttributeList"/> </PropertyGroup>
<PropertyGroup collapsable="false" name="catCatalogEntryDefiningDictionaryAttributesPropertyGroup"> <!-- Enable if the product has no classic defining attributes or has classic and AD defining attributes and the store uses an attribute dictionary. <EnablementAndCondition> <EnablementCondition conditionId="StoreUsesDictionary" contextName="attributeDictionaryEnabledForStore" enablementValue="enabled"/> <EnablementOrCondition> <EnablementAndCondition conditionId="1"> <EnablementCondition conditionId="catalogEntryHasAttributeDictionaryDefiningAttributesCondition" enablementValue="true" objectPath="CatalogEntryAttributeDictionaryDefiningAttributeProperties" propertyName="catalogEntryHasAttributeDictionaryDefiningAttributes"/> <ProductHasClassicDefiningAttributesEnablementCondition package="cat"/> </EnablementAndCondition> <EnablementAndCondition conditionId="2"> <ProductHasClassicDefiningAttributesEnablementCondition package="cat" negate="true"/> </EnablementAndCondition> </EnablementOrCondition> </EnablementAndCondition> --> <!-- An instantiation of a class which contains a Child List Editor to display local product defining attributes. --> <PropertyChildListEditor baseDefinitionName="catCatalogEntryAttributeDictionaryDefiningAttributeList"/> </PropertyGroup>
- Save your changes.
What to do next
Version | Steps |
---|---|
| |
|