Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • tony 15 posts 35 karma points
    Jun 25, 2012 @ 12:49
    tony
    0

    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

  • Jan-Willem de Bruyn 17 posts 38 karma points
    Jun 27, 2012 @ 11:04
    Jan-Willem de Bruyn
    0

    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

     

Please Sign in or register to post replies

Write your reply to:

Draft