Dear All,
Is there a way in Drupal, that I can have a message at the bottom of my pages, saying something like 'This site last updated on XXX date'? Then, every time I make a change to the site or add content the 'last updated' would automatically update?
If so how can this be done?
Regards,
Stuart.
Off the top of my head, I would say that you could put a _phptemplate_variables() function in template.php that gets the last updated date from the database, puts that date into a variable (adds it to the $vars array as $vars['last_updated']), which makes it available in page.tpl.php. Then, in your template file, you could add that variable with some text wherever you want it to show on the page, something like
<p>This site last updated on <?php $last_updated ?></p>.
Steve
Stuart Lawler wrote:
Dear All,
Is there a way in Drupal, that I can have a message at the bottom of my pages, saying something like 'This site last updated on XXX date'? Then, every time I make a change to the site or add content the 'last updated' would automatically update?
If so how can this be done?
Regards,
Stuart.