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

    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

    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

    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

Please Sign in or register to post replies

Write your reply to: