Last modified date for page

Permalink 1 user found helpful
How would I got about getting the last modified date for a page so that I can display it in the footer of every page. I tried, getCollectionDateLastModified(), but it doesn't seem to change the modified date if I change the text in say the content block and then publish my changes.

CodeMonkey
 
andrew replied on at Permalink Reply
andrew
What about this:

<?php
global $c;
$vo = $c->getVersionObject();
print $vo->getVersionDateCreated();


That will print out the date of the page's currently approved version.
CodeMonkey replied on at Permalink Reply
CodeMonkey
Sweet thanks!! That worked perfectly!