Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:40:27+00:00 2026-06-08T01:40:27+00:00

I have a Dynamic Component Template which publishes XML to the Broker database which

  • 0

I have a Dynamic Component Template which publishes XML to the Broker database which is then dynamically loaded using the Component Presentation factory.

This Xml contains URLs to Images. I need a thumbnail and a full image to be available. I have managed to use the Image Resizer TBB to produce the thumbnails however, I was hoping that this would add separate package items and binaries that could be referenced, but it seems to overwrite the full size images.

Is there a way I can get both into my Xml and the Package without writing my own custom TBB?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:40:30+00:00Added an answer on June 8, 2026 at 1:40 am

    Tridion Content Delivery can store multiple variants of the same Multimedia Component. Each such variant has an ID that identifies it and the variant with no ID (of in newer versions #def# as its ID) is known as the default variant.

    When you reference an image from a DWT, it is automatically added as an item to package when the render engine executes your DWT. This item is then later processed by the default “Publish Binaries in Package” TBB that is part of the Default Finish Actions. The Publish Binaries in Package TBB publishes binaries by calling AddBinary on them – you can verify this by looking at the original code for most default TBBs that was published on the Tridion forum here (login required).

    appliedTemplateUri = new TcmUri(item.Properties[Item.ItemPropertyTemplateUri]);
    ...
    engine.AddBinary(itemUri, appliedTemplateUri, targetStructureGroup, 
                     data, fileName);
    

    The AddBinary method that is called is defined in the TOM.NET CHM as:

    public abstract string AddBinary(
        TcmUri componentUri,
        TcmUri templateUri,
        TcmUri targetLocation,
        byte[] data,
        string fileName
    )
    
    • componentUri
      The multimedia component this item refers to
    • templateUri
      The template in whose context this AddBinary call is executed (used as variant id)
    • targetLocation
      The location to publish the binary to (if null, publish to standard path)
    • data
      The binary data to publish
    • fileName
      The filename to publish the file under

    So as you can see in that last call to AddBinary, the Publish Binaries in Package TBB uses a property (look here if you’ve never heard of Item.Properties) to determine which variant to publish (and publishes the binary as the default variant if the property is not present).

    With all this knowledge in hand, the task becomes quite simple: you have to ensure that there are two binary Items in the package for your MMC, each with a different value of the Item.ItemPropertyTemplateUri property.

    The default Image Resizer TBB replaces the binary content of the Item it resizes and does not set this property. So the least code you’ll have to write is either a pre-processor TBB that duplicates the item or a post-processor TBB that re-adds the item. In both cases the TBB will have to set the “magic” property too.

    Useful links:

    • the original C# source code of the default template building blocks
    • a page describing Item.Properties and how to see what they do in your compound template
    • a recent post on the SDL Tridion forum about the same topic (login required)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an Dynamic Component which depend of its options. I just need
Currently I have a website loaded in a WebBrowser component, which keeps changing stuff
I have dynamic array filled with bytes, which are read from .raw file with
I have form where are 2 input fields and then i have dynamic dataTables
I have a dynamic tableview which has a prototype cell with a button that,
I have created a dynamic TClientDataSet component and tried to fire the OnCalcFields event....it
Lets say I have a component using a set schema, and this component is
I have a dynamic page built with jQuery. Html pieces are loaded from mustache
We're looking at doing a MOSS 2007 site which will have a fairly dynamic
I have dynamic listview on my android client app that receive data from remote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.