Posted by dic_son on July 26, 2010 at 7:32pm
I am presently created a small website for someone, The site was done using HTML, CSS and JQuery. I now am now in the process of expanding the functionality of the site using Drupal.
One thing I need to know is how to indicate the last date the site was updated in the footer. It can be done using JavaScript and/or possibly storing the update history in the database. Does drupal allow a sites update history to be easily stored and retrieved?

Comments
That depends on what you mean
That depends on what you mean by a sites update history.
If you simple want a date for when the last piece of content or comment was added to the site then you could create a View that's sorted by Updated Date DESC. You would add Updated Date as the only field. Then you would create a Block display and put that block in the Footer region.
There may be a simpler way but that's what just popped into my head.
--
Small Business, Big Ambition!
Web Design by Sumo Systems
1-876-622-3600
Yea, that's a good idea sumo.
Yea, that's a good idea sumo. I also saw this, which looks useful:
http://drupal.org/node/336330
Node date attribute
The fact that you are updating from an HTML only page means that whenever a page is edited, the file representing that entire page is edited. Unlike Drupal which only edits the "node" which is the content area of the page.
Each node has an node updated/posted field at the top of the published node (Just below the title), similarly to the one's on this site. each node/comment has an associated date.
To get the node updated/created date in the footer. you would have to - as suggested above- add a block in the footer. Or if you wish in the page.tpl.php file. here you can use some simple custom php to grab the node created/updated date and print it.
the node object stores all the attributes for the node, just load it and do a print out.
tnx
@frazras. I am moving the HTML, etc to Drupal so the site will be completely recreated in drupal.
I wanted to show when the content was last updated. All the comments and some information from the link below helped tremendously.
http://drupal.org/node/43512
Thanks.