You create dynamic item types and properties by creating metadata items in the dynamic metadata repository (/atg/repository/dynamic/DynamicMetadataRepository
). These metadata items store the data that is used to generate the dynamic item types and properties. The descriptors for these items types and properties are generated when the metadata items are checked in (on the Content Administration server) or deployed (on the staging or production server).
The dynamic metadata repository has two item types:
das_gsa_dynamic_type
– To create a dynamic item subtype, you create an item of typedas_gsa_dynamic_type
. The item has properties whose values identify the name of the dynamic subtype, the parent item type, and the repository.das_gsa_dynamic_prop
– To create a dynamic property (either of an existing static type or of a dynamic subtype), you create an item of typedas_gsa_dynamic_prop
. The item has properties whose values identify the name of the dynamic property, the item descriptor it is a property of, the repository, and the data type of the property.
So, for example, to generate a dynamic property for the sku
item type in the product catalog repository, you create an item of type das_gsa_dynamic_prop
in the dynamic metadata repository. To generate a subtype of the sku
item type, you create an item of type das_gsa_dynamic_type
in the dynamic metadata repository, and create subtype-specific properties as items of type das_gsa_dynamic_prop
.
To create these items, use the startSQLRepository
script to import data specified in repository XML files. For example, an XML file for creating a das_gsa_dynamic_type
item would include:
<add-item item-descriptor="das_gsa_dynamic_type" ...>
The Importing Dynamic Item Types and Properties section shows examples of XML files for creating, modifying, and deleting das_gsa_dynamic_type
and das_gsa_dynamic_prop
items. The tables below describe the properties of these item types that you can set, and how their values are used to generate dynamic item types and properties. Use this information when you write XML import files for creating dynamic item types and properties.
Properties of the das_gsa_dynamic_type
item type:
| The repository ID of the |
| The full pathname of the repository for the dynamic subtype. For example, for a subtype of the |
| The name of the dynamic subtype. For example, for a subtype of the |
| The parent item type of the dynamic subtype. This can be either a dynamic or static item type. For example, for an |
| A map of attributes and their values. Used to set attributes in the |
Properties of the das_gsa_dynamic_prop
item type:
| The repository ID for the |
| The repository data type of the dynamic property. This can be one of the following: |
| The name of the dynamic property. |
| The item type that the dynamic property applies to. This can be either a static or a dynamic item type. |
| The full pathname of the repository for the dynamic property. For example, for a property of the |
| Used only if |
| A map of attributes and their values. Used to set attributes in the |