jan-h
2/17/2016 - 7:50 PM

Item type mapping example from the cd_storage_conf.xml in SDL Tridion 2013 SP1

Item type mapping example from the cd_storage_conf.xml in SDL Tridion 2013 SP1

<!-- This is part of the cd_storage_conf.xml -->

    <ItemTypes defaultStorageId="defaultDataFile" cached="false">
		<!-- Query type mapping is replacement for Query gnenerator. If there was query generator defined in a Broker configuration then  Query type mapping should be binded to default DB. -->
		<!--
		<Item typeMapping="Query" storageId="defaultdb"/>
		-->
		<!--Optional:-->
		<!-- If the item type mapping is defined and storage defined by storageId is the existing one then that one will be used.
			 If storage defined by storageId does not exist then default storage defined by ItemTypes element will be used. -->
		<!--
		<Item typeMapping="Binary" itemExtension=".pdf" storageId="defaultFile" cached="true"/>
		<Item typeMapping="Binary" itemExtension=".iso" storageId="defaultFile" cached="false"/>
        <Item typeMapping="ComponentLinkClick" cached="true" storageId="defaultFile"/>
		<Item typeMapping="Metadata" cached="true" storageId="defaultFile"/>
        <Item typeMapping="ComponentVisit" cached="true" storageId="defaultFile"/>
        <Item typeMapping="DynamicLinkInfo" cached="true" storageId="defaultFile"/>
        -->
        <Item typeMapping="Page" cached="false" storageId="defaultFile"/>
        <!--
		<Item typeMapping="Personalization" cached="true" storageId="defaultdb"/>
		<Item typeMapping="Taxonomy" cached="true" storageId="defaultdb"/>
		<Item typeMapping="Timeframe" cached="true" storageId="defaultFile"/>
		<Item typeMapping="TrackedPage" cached="true" storageId="defaultFile"/>
		<Item typeMapping="XSLT" cached="true" storageId="defaultFile"/>
		<Item typeMapping="ExtensionData" cached="true" storageId="defaultdb"/>
		-->
		<!-- UGC -->
        <!--
        <Item typeMapping="Comment" storageId="ugcdb"/>
        <Item typeMapping="Rating" storageId="ugcdb"/>
        <Item typeMapping="UGCUser" storageId="ugcdb"/>
        <Item typeMapping="UGCItemStats" storageId="ugcdb"/>
		-->
		
		<!--Optional:-->
		<!-- If the publication is defined and storage defined by defaultStorageId is the existing one then that one will be used for that publication unless it is overwriten on a lower level.
			 If storage defined by storageId does not exist then default storage defined by ItemTypes element will be used unless lower level type mappings are not matched. -->
		<!--
		<Publication Id="1" defaultStorageId="defaultFile" cached="false">
		-->
			<!--Optional:-->
			<!-- If there is a type mapping match and storage is defined for storageId then that storage will be used.
				 Otherwise; first storage defined within publication element will be referenced, and if that one does not exist then the storage from Item elements will be referenced. 
				 and at the end storage defined within ItemTypes will be used.-->
			<!--
			<Item typeMapping="ComponentPresentation" itemExtension=".Jsp" storageId="defaultFile"/>
			<Item typeMapping="ComponentPresentation" itemExtension=".Asp" storageId="defaultFile"/>
			<Item typeMapping="ComponentPresentation" itemExtension=".Xml" storageId="defaultFile"/>
			<Item typeMapping="ComponentPresentation" itemExtension=".Txt" storageId="defaultFile"/>
			<Item typeMapping="Metadata" cached="true" storageId="defaultFile"/>
            <Item typeMapping="Binary" itemExtension=".pdf" storageId="defaultFile" cached="true"/>
            <Item typeMapping="Binary" itemExtension=".iso" storageId="defaultFile" cached="false"/>
            <Item typeMapping="ComponentLinkClick" cached="true" storageId="defaultFile"/>
            <Item typeMapping="ComponentVisit" cached="true" storageId="defaultFile"/>
            <Item typeMapping="DynamicLinkInfo" cached="true" storageId="defaultFile"/>
			<Item typeMapping="Page" cached="true" storageId="defaultFile"/>
            <Item typeMapping="Personalization" cached="true" storageId="defaultdb"/>
            <Item typeMapping="Taxonomy" cached="true" storageId="defaultdb"/>
            <Item typeMapping="Timeframe" cached="true" storageId="defaultFile"/>
            <Item typeMapping="TrackedPage" cached="true" storageId="defaultFile"/>
            <Item typeMapping="XSLT" cached="true" storageId="defaultFile"/>
            <Item typeMapping="ExtensionData" cached="true" storageId="defaultdb"/>
            -->
            <!-- UGC -->
            <!--
            <Item typeMapping="Comment" storageId="ugcdb"/>
            <Item typeMapping="Rating" storageId="ugcdb"/>
            <Item typeMapping="UGCUser" storageId="ugcdb"/>
            <Item typeMapping="UGCItemStats" storageId="ugcdb"/>
			-->			
		<!--
        </Publication>
		-->
    </ItemTypes>