We are using Tridion 2013sp1. And DD4T at content delivery. Our binaries are published to cdn server. Each publication target will publish binaries to different cdn server. Hence, we are unable to resolve image paths automatically for different environments in our web application using DD4T as image path is resolved with path mentioned in publication metadata "image path".

Now, I'm looking for a way to change publication metadata dynamically while publishing from Tridion according to publication target.

3 Answers 3


You may also want to consider modifying the publish path using a Custom Renderer.

A Custom Renderer can be used to manipulate the output produced by the template process.

More information can be found in the online doc's here: http://docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20full%20documentation-v1/GUID-63F2D210-B270-42D6-939E-8D33D927C19C

  • Hi Jonathan, thanks for highlighting about custom renderer. I will check this option.
    – Rajesh G
    Commented Jun 26, 2016 at 16:58

There's 2 ways that I see you can resolve this issue:

From the CMS when publishing:

  • Use Hiren's approach and add a TBB (that fixes the binary paths) in the existing Dynamic Component and Dynamic Page templates.

From the WebApplication when resolving the images:


Instead of updating the publication metadata, you can consider below approach.

  1. Create a configuration component with key value pair of Target & corresponding CDN url.
  2. Create TBB that will read above configuration and override the existing CDN url.
  3. Include this new TBB in your template for publishing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.