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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   3689 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!