Hi All,
To display the related items for Channel metadata is not working on below approach.
If I just print the <x:out select="$channelMetadata" /> value then getting results like below:
ef6bdf40cd5c3510VgnVCM1000002974640aSTFLTest15c4bdf40cd5c3510VgnVCM1000002974640aSTFLTest5d5bdf40cd5c3510VgnVCM1000002974640aSTFLTue Mar 22 00:00:00 AST 2016
If I used below code then its returning only one value
<templating:channelMetadata oid="${currentChannel.system.id}" result="metadataXml"/>
<x:parse var="channelMetadata" xml="${metadataXml}"/>
<c:set var="thumbnailid"><x:out select="$channelMetadata//relatedItem" escapeXml="false"/></c:set>
<c:forEach items="${thumbnailid}" varStatus="status">
<c:set var="relfiles"><x:out select="$channelMetadata//relatedItem" /></c:set>
Related Files: ${relfiles}<br/>
</c:forEach>
Related Files: 5d5bdf40cd5c3510VgnVCM1000002974640aSTFL
Thanks
Jayaram