Configuring UGC in the Content Service
Some Storage Layer configuration and, to enable REL for UGC, the configuration of a Tag Bundle are necessary. Note that REL only supports read-only tags.
Procedure
- Navigate to the configuration location of your Content Service.
- Open cd_storage_conf.xml for editing.
- Ensure that the
Storagessection contains the following:<StorageBindings> <Bundle src="ugc_dao_bundle.xml" /> </StorageBindings> - Configure the UGC database connection in a new
Storageelement, also within theStoragessection. Refer to the Storage Layer configuration reference for details on these settings. For example:<Storage Type="persistence" Id="ugcdb" dialect="ORACLESQL" Class="com.tridion.storage.persistence.JPADAOFactory"> <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" /> <DataSource Class="oracle.jdbc.pool.OracleDataSource"> <Property Name="driverType" Value="thin" /> <Property Name="networkProtocol" Value="tcp" /> <Property Name="serverName" Value="NAMEOFSERVER" /> <Property Name="portNumber" Value="1521" /> <Property Name="databaseName" Value="NAMEOFUGCDB" /> <Property Name="user" Value="USERNAME" /> <Property Name="password" Value="PASSWORD" /> </DataSource> </Storage> - In the
ItemTypessection, ensure the presence of the followingItemelements:<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" />where the value of the
storageIdis the same as that of theIdattribute in theStorageelement you just added (ugcdbin this example). - Save and close cd_storage_conf.xml
- In the same folder, open cd_dynamic_conf.xml for editing.
- Ensure that the file contains the following
TCDLEnginesection:<TCDLEngine> <TagBundle Resource="ugc_renderer_bundle.xml" /> </TCDLEngine> - Save and close cd_dynamic_conf.xml.