Copied to clipboard

Flag this post as spam?

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


  • Robin Hansen 117 posts 248 karma points
    Oct 22, 2010 @ 16:38
    Robin Hansen
    0

    Imagepicker fails

    Please excuse my ignorance - but I'm quite new to Umbraco and this whole xlst-thing...

    I've followed this (http://umbraco.org/help-and-support/video-tutorials/for-site-builders/datatypes/using-content-and-media-pickers) video-tutorial to the bone several times but very early my script fails.

    When I try to generate a "value-of" tag I get this line: <xsl:value-of select="mediaItem"/> while the author in the video gets this:<xsl:value-of select="$currentPage/data [@alias = 'mediaItem']"/>.

    I've tried them both but I simply can't get any value when I tries to visualize the XSLT - it simply says

    "The XSLT didn't generate any output"

    - which I don't understand! - I'm kinda stuck in this tutorial until I can visualize the output...

    By the way I use umbraco 4_5_2 for asp.net 3.5

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Oct 22, 2010 @ 16:43
    Tom Fulton
    0

    I think you need to add the $currentPage variable - ie <xsl:value-of select="$currentPage/mediaItem"/>

  • Robin Hansen 117 posts 248 karma points
    Oct 22, 2010 @ 16:49
    Robin Hansen
    0

    Off course...!!! - how could I be so blind... - thank you very much...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies