Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

"Page Last Updated" Timestamp


Reply

3 Posts   1727 Views

Avatar
nickysix

7 July 2010 at 4:22pm Community Member, 4 Posts

Is the a way to display the date that a page was last updated?

Avatar
Willr

7 July 2010 at 5:34pm Forum Moderator, 5511 Posts

There is 2 fields LastEdited and Created which are datetime fields stored for each DataObject (pages as well). You can use it in the template like $LastEdited.Nice.

See http://api.silverstripe.org/2.4/sapphire/model/SS_Datetime.html for methods you can call.

Avatar
nickysix

7 July 2010 at 7:07pm Community Member, 4 Posts

Perfect! Thanks for the speedy and helpful reply!