Can I put a dynamic date into the footer field found in the "site information" area of the Garland theme - ie. put a php snippet in there to automatically update the copyright year?

Thanks in advance

Comments

vm’s picture

yes, it would go in page.tpl.php i believe.

nancydru’s picture

I would think so, but why? If you're only changing the year, can't you do that once a year? And you can list a range of years there (© Nancy 2005-2007).

You could certainly create a footer block.

Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database

US421’s picture

LOL Nancy, have you only five sites now? Just you wait... :) Besides, why do it yourself when the computer works so well?

You can make the date range update automatically as well, just make the last date dynamic.

nancydru’s picture

Why waste resources on every page load? They may not be much, but over the year you may have pushed some other user off the server.

I only have 5 sites in production on Drupal right now. I have four other sites waiting to be converted, and 8 test sites (all on Drupal). The site I'm converting now has some problems with modules not being completely ready, plus I saw a crying need for some custom code... The world is no longer safe with me writing programs that hit the web. ;-)

Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database

US421’s picture

That is a lot. :)

sammy-node’s picture

Thanks for the replies

I'd like to avoid hardcoding files wherever possible so that I don't have to worry about which files I overwrite with new updates etc. The reason I'm asking is because I would like to have about 15 sites up and running eventually and I'd like to remove one at least one hassle in keeping them all updated with copywrite year.

vm’s picture

no there is no setting for this in the admin screens.

nancydru’s picture

You wouldn't have to worry if you put code in the footer - at least until you install a new release of Drupal, and maybe not then.

Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database

sammy-node’s picture

OK - thanks