I want to display the date a page was last revised/changed instead of the date it was created.

This displays the created on date. Is there something similar for revision dates?

 if ($submitted != "") {
  print "<div class=\"info\"><p>date posted: {$date}</p></div>";}

Comments

DriesK’s picture

Open phptemplate.engine, find phptemplate_node() near line 260, and there you'll find the $vars array.
Add the following to that array:

'changed'           => format_date($node->changed),

Now you'll have a variable named $changed available in your theme. Use it like this:

 if ($submitted) {
  print "<div class=\"info\"><p>date changed: {$changed}</p></div>";
 }
macunni’s picture

Thank you very much! This worked like a charm.

spgd01’s picture

Any one know how to do this in 6.x and 7.x ?