Change date updated in page footer without using "Mark page as changed"


Is it possible to display the date that a page was last updated in the footer of a page, without having to check the "Mark page as changed" checkbox?

We don't expect to use subscriptions immediately, but we may want to in the future. We wouldn't want the date changing in the footer to cause problems with subscriptions - especially if the change made to a page isn't very significant - and is perhaps due to amending a typo!



Aug 02, 2011 14:57


If you don't want to use the "Mark page as changed" option to update the Changed property on the page, you can get the published version of the page and show the Saved date for that version:

PageVersion publishedPageVersion = EPiServer.DataAbstraction.PageVersion.LoadPublishedVersion(pageReference);
DateTime saved = publishedPageVersion.Saved;

I hope this helps!



Edited, Aug 04, 2011 12:49

Thanks Karoline. I've asked our developers to see if they can use this instead of the "Mark page as changed" option.



Aug 05, 2011 15:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.