Class CatalogMetadataExtender
Adds custom modifications of metadata for catalog content.
Inheritance
System.Object
CatalogMetadataExtender
Implements
EPiServer.Shell.ObjectEditing.IMetadataExtender
EPiServer.Shell.ObjectEditing.IMetadataHandler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 9.24.1Syntax
public class CatalogMetadataExtender : IMetadataExtender, IMetadataHandler
Constructors
CatalogMetadataExtender()
Declaration
public CatalogMetadataExtender()
Methods
ModifyMetadata(ExtendedMetadata, IEnumerable<Attribute>)
Changes metadata for the editor before the UI is rendered.
Declaration
public void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| EPiServer.Shell.ObjectEditing.ExtendedMetadata | metadata | The metadata to modify. |
| System.Collections.Generic.IEnumerable<System.Attribute> | attributes | The attributes for this metadata. |
Remarks
Will hide the SetChangedOnPublish property, since it doesn't make sense for catalog content. Will set Name as ReadOnly if not on the master language. Will hide the media collection property if legacy assets are used.
Implements
EPiServer.Shell.ObjectEditing.IMetadataExtender
EPiServer.Shell.ObjectEditing.IMetadataHandler