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   1814 Views

Avatar
nickysix

Community Member, 4 Posts

7 July 2010 at 4:22pm

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

Avatar
Willr

Forum Moderator, 5513 Posts

7 July 2010 at 5:34pm

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

Community Member, 4 Posts

7 July 2010 at 7:07pm

Perfect! Thanks for the speedy and helpful reply!