Copied to clipboard

Flag this post as spam?

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


  • Sonny2010 7 posts 20 karma points
    Mar 25, 2009 @ 07:03
    Sonny2010
    0

    Inline XSLT

    How come this does not work?

    < umbraco:Item runat="server" field="teacher" xslt="umbraco.library:GetXmlNodeById({0})/@nodeName" />

    teacher is content picker field.


    This one works fine:




    If the top one is a bad code then is there a way to display the nodeName of the content picker in the template file?

    Thanks!

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 25, 2009 @ 08:40
    Dirk De Grave
    0

    Hi Sonny2010,

    It works fine on my local install! What version of umbraco are you using. I've tested with the latest v401 changeset and page renders ok.

    Looking forward to your info.

    Regards,
    /Dirk

  • Sonny2010 7 posts 20 karma points
    Mar 27, 2009 @ 03:49
    Sonny2010
    0

    Hi Dirk,

    Thanks for your replying!

    I am running umbraco v 4.0.0 (Assembly version: 1.0.3317.32692)

    I'll update to the newest version and let you know if it worked.

    -Sonny

  • Sonny2010 7 posts 20 karma points
    Mar 27, 2009 @ 05:47
    Sonny2010
    0

    I upgraded to the latest realease, umbraco v 4.0.0 (Assembly version: 1.0.3327.20280) and it still does not work.

    It does not show anything.

  • Daniel Lindstrom 454 posts 271 karma points
    Mar 27, 2009 @ 08:21
    Daniel Lindstrom
    0

    I have yet to work with inline xslt, but I suppose it works against the published XML content just like XSLT macros. If so, if Teacher is an unpublished node it will not find it.

    Please correct me if I am wrong on how inline xslt works!

    EDIT: But then of course nice url should not work either?.

Please Sign in or register to post replies

Write your reply to:

Draft