Copied to clipboard

Flag this post as spam?

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


  • aaronb 97 posts 116 karma points
    Jun 30, 2011 @ 23:39
    aaronb
    0

    MediaCurrent macro parameter on a folder new schema?

    I'm trying to do exactly this: http://our.umbraco.org/forum/developers/xslt/2762-Using-mediaCurrent-on-image-folder

    but on the new schema. If I point my macro parameter to an image, I get output. if I point it to a folder, I get nothing.

    I think this is the root of my problems:

    <xsl:variable name="MediaNodeId" select="/macro/MediaNode/node/@id"/>

    I imagine I can't use /node/@id to get the id of the folder I'm selecting any more. 

    Thanks for any suggestions.


     


     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jun 30, 2011 @ 23:44
    Tom Fulton
    1

    Hi,

    Try replacing /node/ with /Folder/ or /*/ - in the new schema node is replaced with the alias of the media type

    <xsl:variablename="MediaNodeId"select="/macro/MediaNode/Folder/@id"/>

    -Tom

  • aaronb 97 posts 116 karma points
    Jun 30, 2011 @ 23:46
    aaronb
    0

    Thanks Tom, that worked perfectly.

Please Sign in or register to post replies

Write your reply to:

Draft