Documentation Center

Configuring storage for Component Presentations of a specific file type

You can override the default storage medium or caching behavior for all Component Presentations of a certain file type (that is, Component Presentations with specific file extensions) by inserting an Item element inside the ItemTypes element.

Procedure

  1. In the configuration directory of the Role, open cd_storage_conf.xml for editing.
  2. Inside the ItemTypes element, insert the following Item child element:
    <Item typeMapping="ComponentPresentation" itemExtension="EXT" cached="CACHE_BEHAVIOR" storageId="STORAGE_ID" />
    where
    • EXT is a file extension
    • STORAGE_ID identifies the storage provider to be used for this specific item type.
    • CACHE_BEHAVIOR is a Boolean that enables or disables caching on this item type.
    EXT must be one of the following:
    • .Jsp
    • .Ascx
    • .Xml
    • .Txt
    • .rel
  3. Repeat these steps as needed in order to configure separate storage behavior for other Component Presentation file types.
  4. Save and close cd_storage_conf.xml.