Skip to main content
Tweeted twitter.com/#!/StackTridion/status/451313319782416384
added 34 characters in body; edited title
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Render multivalued multimedia componentMultimedia Component link with metadata in DWT

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 -->

Render multivalued multimedia component link with metadata in DWT

I have component with multivalued multimedia component link field named "list". Each multimedia component has its own metadata ("thumbnail" and 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 -->

Render multivalued Multimedia Component link with metadata in DWT

I have Component with multivalued Multimedia Component link field named "list". Each Multimedia Component has its own metadata ("thumbnail" and "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 -->
Source Link

Render multivalued multimedia component link with metadata in DWT

I have component with multivalued multimedia component link field named "list". Each multimedia component has its own metadata ("thumbnail" and 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 -->