displaying last updated info in footer

Events happening in the community are now at Drupal community events on www.drupal.org.
dic_son's picture

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

rasumo's picture

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.

varunity's picture

Yea, that's a good idea sumo. I also saw this, which looks useful:

http://drupal.org/node/336330

Node date attribute

frazras's picture

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

dic_son's picture

@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.

Jamaica

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week