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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

"Page Last Updated" Timestamp


Go to End


3 Posts   3041 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, 5523 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!