Adding the Context Expression Extension to your Content Deployer
Ensure that context expression are published by adding resources and configuring settings for your Content Deployer(s).
Procedure
- Access the server on which the Content Deployer runs that deploys content to the Web site on which you want to make your context expression available. If you have multiple Content Deployers and/or servers that fit this description, change each of them in turn.
- On this server, navigate to the Content Deployer root location.
- Then navigate to bin\lib\ (.NET) or WEB-INF/lib/ (Java).
- On your SDL Tridion installation media, navigate to Content Delivery\roles\context\java\lib\.
- Copy the following files from the installation media to the server:
- cx_api.jar
- cx_deployer.jar
- On your SDL Tridion installation media, navigate to Content Delivery\roles\context\java\third-party-lib\.
- Copy the file gson.jar from the installation media to the server.
- Navigate to bin\config\ (.NET) or WEB-INF/classes/ (Java).
- Open cd_deployer_conf.xml for editing.
- In the
<Processors>section, add the following:<Processor Action="Deploy" Class="com.tridion.deployer.Processor" Phase="post-transaction"> <Module Type="ContextExpressionDeploy" Class="com.sdl.context.deployer.ContextExpressionDeploy" /> </Processor> <Processor Action="Uneploy" Class="com.tridion.deployer.Processor" Phase="post-transaction"> <Module Type="ContextExpressionUndeploy" Class="com.sdl.context.deployer.ContextExpressionUndeploy" /> </Processor> - Save and close cd_deployer_conf.xml.
- Open cd_storage_conf.xml for editing.
- In the
<Storages>section, find the<StorageBindings>section and add the following inside it:<Bundle src="undo_dao_bundle.xml" /> - Save and close cd_storage_conf.xml.
- Repeat these steps for other Content Deployers that publish to the Web site on which you want to make your context expression available.