Copied to clipboard

Flag this post as spam?

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


  • Kims 25 posts 34 karma points
    Dec 20, 2010 @ 00:44
    Kims
    0

    GETITEM "updateDate" no longer in use in V4?

    Hi,

    I'm having troubles with updatedDate <?UMBRACO_GETITEM field="updateDate" formatAsDate="true"/?> tag.


    This was working perfectly until upgraded from Umbraco 3 to 4.0.4.2. When I preview my pages the date doesn't show up but when I view the page source the tag is still there in the footer. Is this tag no longer compatible? If not is there another way to do this without creating any xslt?

    Any help will be much appreciated

    - Kim

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 20, 2010 @ 08:32
    Jan Skovgaard
    0

    Hi Kim

    This should still work in 4.0.4.2 - Have you republished the entire site after the upgrade?

    /Jan

  • Patrik Wibron 40 posts 67 karma points
    Dec 20, 2010 @ 08:42
    Patrik Wibron
    0

    This line should output the same thing in 4.x:

    <umbraco:Item field="updateDate" runat="server" xslt="umbraco.library:FormatDateTime({0}, 'YOUR-FORMAT-HERE')" />
  • Kims 25 posts 34 karma points
    Dec 21, 2010 @ 03:57
    Kims
    0

    @ Jan - I've republished the site and the date still doesnt show

    @ Patrik - I tried adding this but and adding 'dd-mm-year' as my date format and it hasn't worked...have I done it correctly?

    Thanks for your help though

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 21, 2010 @ 04:04
    Tom Fulton
    1

    Try 'dd-MM-yyyy'

    (I think) it adheres to the standard ASP.NET Date/Time Format Strings

  • Kims 25 posts 34 karma points
    Jan 03, 2011 @ 23:40
    Kims
    0

    I tried it with <umbraco:Item field="updateDate" runat="server" xslt="umbraco.library:FormatDateTime({0}, 'd MMMM, yyyy')" /> and it worked!

    Thanks for all your help!

Please Sign in or register to post replies

Write your reply to:

Draft