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?
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
Hi Kim
This should still work in 4.0.4.2 - Have you republished the entire site after the upgrade?
/Jan
This line should output the same thing in 4.x:
@ 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
Try 'dd-MM-yyyy'
(I think) it adheres to the standard ASP.NET Date/Time Format Strings
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!
is working on a reply...