Copied to clipboard

Flag this post as spam?

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


  • Jens Hummelmose 6 posts 26 karma points
    Dec 05, 2009 @ 23:11
    Jens Hummelmose
    0

    Can't get inline XSLT to work

    Hi there.

    I have a media picker field on my document type, and try to get the url from the image.

    When calling the field i get a valid ID

    But when using:

    <umbraco:Item runat="server" field="pSiteBackgroundImage" xslt="umbraco.library:NiceUrl({0})"/>

    It returns nothing.

    I've even reinstalled umbraco to make sure, that it's working.

    Any ideas ?

  • Tommy Poulsen 514 posts 708 karma points
    Dec 05, 2009 @ 23:31
    Tommy Poulsen
    1

    Hi Jens, you can use the GetMedia function - do like this:

    <umbraco:Item runat="server" field="pSiteBackgroundImage" xslt="umbraco.library:GetMedia({0}, 'false')/data [@alias = 'umbracoFile']"/>

     

    >Tommy

     

  • Jens Hummelmose 6 posts 26 karma points
    Dec 05, 2009 @ 23:50
    Jens Hummelmose
    0

    Thanks a mill.. :-)

  • 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