Copied to clipboard

Flag this post as spam?

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


  • bob baty-barr 1180 posts 1294 karma points MVP
    Feb 19, 2010 @ 17:17
    bob baty-barr
    0

    4.1 xslt syntax help an hints

    I figure we need to start this topic and since i cannot figure this out... i am asking for help :)

    i can see glimpses of the new syntax in the stock xslt that comes with install -- looks very cool and it also looks like the data[@alias=''] syntax might be going away.

    can someone please post a getMedia example here... as i think even in the current versions, this is one of the most challenging xslt items we face.

    thanks!

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Feb 19, 2010 @ 17:50
    Chris Houston
    0

    Hi Bob,

    Yes you are right the main reason for changing the XML was to get rid of the data[@alias=''] syntax to make it easy for new users to understand.

    Sorry I've not had time to create an example, but I am sure someone will post one shortly :)

    Cheers,

    Chris

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 19, 2010 @ 18:02
    Lee Kelleher
    0

    Just tried to use GetMedia on a fresh v4.1 install, but no joy - not sure what the issue is (haven't got time to raise a CodePlex issue at the moment either - may do later).

    If you can get it to work, then try the usual <xmp> tags to see what is being pulled back from GetMedia?

    <xmp>
        <xsl:copy-of select="umbraco.library:GetMedia(1055, 0)" />
    </xmp>

    Cheers, Lee.

  • bob baty-barr 1180 posts 1294 karma points MVP
    Feb 19, 2010 @ 18:06
    bob baty-barr
    0

    yeah, it looks to be a bit broken... i can get it to work in legacy mode... but really want to start working with the new syntax to get used to it.

Please Sign in or register to post replies

Write your reply to:

Draft