简体   繁体   中英

How to publish dynamic components in SDL Deployer file system maintaining the folder structure as in CME?

I have a scenario where my dynamic components available in CME should be published to the same folder path as in CME. Can I control the path where these dynamic components are published?

eg) CME Path - C020 Global Content US English/Building Blocks/Dynamic Content/Article/Component1.xml Deployer File System Path - D:\\C020 Global Content US English/Building Blocks/Dynamic Content/Article/Component1.xml

CME Path - C050 Local Content Spanish/Building Blocks/Dynamic Content/Communication/Component2.xml Deployer File System Path - D:\\C050 Local Content Spanish\\Building Blocks\\Dynamic Content\\Communication\\Component2.xml

You can define the path in the stroage config file on CDA Server in below tag.

 <ItemTypes defaultStorageId="defaultdb" cached="false">

    <Item typeMapping="Page" cached="false" storageId="defaultFile"/>
    <Item typeMapping="ComponentPresentation" itemExtension=".Xml" cached="true" storageId="defaultDataFile" />
    <Item typeMapping="ComponentPresentation" itemExtension=".rel" cached="true" storageId="defaultDataFile" />
    <Item typeMapping="ComponentPresentation" itemExtension=".ascx" cached="true" storageId="defaultDataFile" />
    <Item typeMapping="ComponentPresentation" itemExtension=".html" cached="true" storageId="defaultDataFile" />
    <Item typeMapping="Binary" itemExtension=".jpg" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Binary" itemExtension=".gif" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Binary" itemExtension=".pdf" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Binary" itemExtension=".jpeg" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Binary" itemExtension=".png" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Binary" itemExtension=".ico" storageId="defaultFile" cached="true"/>
    <Item typeMapping="Comment" cached="false" storageId="Ugcdb" />
  <Item typeMapping="Rating" cached="false" storageId="Ugcdb" />
  <Item typeMapping="UGCUser" cached="false" storageId="Ugcdb" />
 <Item typeMapping="UGCItemStats" cached="false" storageId="Ugcdb" />

and if you want to save on physical path then also define the below tag value

<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile" defaultFilesystem="true" defaultStorage="true">
            <Root Path="c:\websites\Staging\data" />
        </Storage>

Let me know if it is not clear

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM