InterviewSolution
| 1. |
What Are Catalog Aware Item Types? |
|
Answer» While creating a data model for your project, you might come across situations, where you might WANT some of your item types to be part of catalog. This means, you want them to synchronize, you want them to be associated with a catalog, content or product. Such item types are known as catalog aware. It’s not just CMS item types or products, that NEEDS synchronization. All OOB CMS items and products are catalog aware.
<itemtype code=”MyItemType” autocreate=”false” generate=”false”> <custom-properties> <property name=”catalogItemType”><value>java.lang.Boolean.TRUE</value></property> <property name=”catalogVersionAttributeQualifier”><value>”catalogVersion”</value></property> <property name=”uniqueKeyAttributeQualifier”><value>”code”</value></property> </custom-properties> <attributes> <attribute qualifier=”catalogVersion” type=”CatalogVersion”> <modifiers read=”true” write=”true” search=”true” optional=”false” unique=”true”/> <persistence type=”property”/> </attribute> Once UPDATING your item type, you should update your platform, using system update. And you should see something like below in HMC > System > item types > My ItemType > Extended Now, instances of this itemtype will be catalog aware, and would be part of synchronization. While creating a data model for your project, you might come across situations, where you might want some of your item types to be part of catalog. This means, you want them to synchronize, you want them to be associated with a catalog, content or product. Such item types are known as catalog aware. It’s not just CMS item types or products, that needs synchronization. All OOB CMS items and products are catalog aware. <itemtype code=”MyItemType” autocreate=”false” generate=”false”> <custom-properties> <property name=”catalogItemType”><value>java.lang.Boolean.TRUE</value></property> <property name=”catalogVersionAttributeQualifier”><value>”catalogVersion”</value></property> <property name=”uniqueKeyAttributeQualifier”><value>”code”</value></property> </custom-properties> <attributes> <attribute qualifier=”catalogVersion” type=”CatalogVersion”> <modifiers read=”true” write=”true” search=”true” optional=”false” unique=”true”/> <persistence type=”property”/> </attribute> Once updating your item type, you should update your platform, using system update. And you should see something like below in HMC > System > item types > My ItemType > Extended Now, instances of this itemtype will be catalog aware, and would be part of synchronization. |
|