include edit date on pages automatically?
ElizabethCFS says:
Is there a code I could use to include the last edit date/time on pages automatically? I want users who are unable to access the Versions section to know when a page was modified.
Thanks!
Elizabeth
Posted at 7:18 AM on July 31, 2009
Elizabeth,
This can be done with an edit to the Layout. This code will display the last modification date of the current page:
<p>Last modified <span editme="text util.formatDate(page.date,'MM/dd/yyyy')"/> by <span editme="text page.user"/></p>
If you paste that in, say, beneath the page content in your layout, it will display something like:
Last modified 08/01/2009 by ElizabethCFS
Posted at 8:21 AM on August 1, 2009
You could also put this into a scripted page and then use an include tag to drop it into specific pages.
Posted at 8:23 AM on August 1, 2009
Thanks, Matt!
I like both ideas; I think I'll use each of them on different sites.
Elizabeth
Posted at 9:51 AM on August 3, 2009
You can also use this:
[[include:_PageHistory page=MarketingAndMerchandising limit=1]]
However, it'd have to be place on every page individually.
Posted at 3:00 PM on March 21, 2012