13

I'm using Tridion 2011 (with DD4T, feeding an MVC webapp).

It seems that MetaData fields for Multimedia Components (specified on the Metadata tab of my Images Schema in Tridion) are not populating the corresponding property on the DD4T "Component" object. e.g. LinkedComponentFields[0].MetadataFields is empty and Multimedia.AltText is null.

Specifically the field I'm after is the AltText. But as the entire MetadataFields collection is empty on the Component, it's obviously not pulling through any metadata properties. i have tried using TemplateBuilder to set parameters in the Component Template (I set "resolve width and height" to yes, and the MergeAction to Merge) - this did not help.

Any ideas?

2
  • 1
    Thanks for your first SDL Tridion related post. Please consider committing to the Area 51 proposal using your SO id at area51.stackexchange.com/proposals/38335/… - We really need everyone's help. Jan 29, 2013 at 18:06
  • Do you see anything in the Template Builder log at the DEBUG level? You should see messages like: "start retrieving tcm metadata fields", "add fields: found 1 fields"
    – Neil
    Jan 30, 2013 at 13:37

1 Answer 1

10

It is possibly caused by the linklevel. By default, links are followed for one level from the page or component that you are publishing. You can increase this by adding a parameter to the template invocation, called linklevel. Try it with a value of 2 first, then increase until it works.

0

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.