Copied to clipboard

Flag this post as spam?

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


  • Barry 99 posts 187 karma points
    Oct 09, 2009 @ 22:23
    Barry
    0

    Inline XSLT to display item

    I want to display a node property item inline using the umbraco library formatdatetime - what is the syntax for this?

  • Barry 99 posts 187 karma points
    Oct 09, 2009 @ 22:37
    Barry
    0

    I tried thsi and it didnt work..feel that I must be close

     

    <umbraco:Item runat="server" field="mediaItem" xslt="umbraco.library:FormatDateTime({0}, 'ddd d, MMMM yyyy')/@nodeName" />

  • Ulrik Knudsen 14 posts 25 karma points
    Oct 10, 2009 @ 00:01
    Ulrik Knudsen
    0

    Replace 'mediaItem' with the name of the date property (or attribute), e.g. createDate.

    Remove the '/@nodeName' part.

    <umbraco:Item  runat="server" field="createDate" xslt="umbraco.library:FormatDateTime({0},'ddd d, MMMM yyyy')"></umbraco:Item>

    Best regards
    Ulrik

  • 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