For my client we have a homepage that has a mediapicker picture field, there are also chold nodes below it, each of which has a media picker picture.
On the home page, I display the media for the home page and also I want a list of child pages (which I have) but also I want to show the media picture from each of these child pages.
My issue is how to I access the media picture of each child page (apolohies if this is simple, but it took me two days to work out how to display the media for the home page!)
Child Pages Media Picture
For my client we have a homepage that has a mediapicker picture field, there are also chold nodes below it, each of which has a media picker picture.
On the home page, I display the media for the home page and also I want a list of child pages (which I have) but also I want to show the media picture from each of these child pages.
My issue is how to I access the media picture of each child page (apolohies if this is simple, but it took me two days to work out how to display the media for the home page!)
tia
Tony
Hi, you can try:
<xsl:for-each select="@currentPage/descendant::* [@isDoc]">
<xsl:value-of select="umbraco.library:GetMedia(mediaPropertyAlias, 0)/data [@alias = 'umbracoFile']"/>
</xsl:for-each>
to get the media url of each node under the current, then you can use a img tag or something...
Greetings Jan-Willem
is working on a reply...