I have componentComponent with multivalued multimedia componentMultimedia Component link field named "list". Each multimedia componentMultimedia Component has its own metadata ("thumbnail" and altText"altText"). I need to write a DWT TBB to extract those metadata values. I am using DGX in templating.
I tried this code but its rendering the image not metadatas.
<!-- TemplateBeginRepeat name="list" -->
<div>
<a href="@@Get("Fields.list[${TemplateRepeatIndex}].Id.Metadata.thumbnail")@@">
<img alt="@@Get("Fields.list[${TemplateRepeatIndex}].Id.Metadata.altText")@@" src="@@Get("Fields.list[${TemplateRepeatIndex}].Id")@@"/>
</a>
</div>
<!-- TemplateEndRepeat -->
<!-- TemplateBeginRepeat name="list" -->
<div>
<a href="@@Get("Fields.list[${TemplateRepeatIndex}].Id.Metadata.thumbnail")@@">
<img alt="@@Get("Fields.list[${TemplateRepeatIndex}].Id.Metadata.altText")@@" src="@@Get("Fields.list[${TemplateRepeatIndex}].Id")@@"/>
</a>
</div>
<!-- TemplateEndRepeat -->