Post Calendars for Drupal
If you check out the front page of this site, you'll see I've stolen those little 'calendar' type icons to display the date of my posts. I first noticed em on mozilla.org, but they're appearing on many a blog site.
I've cobbled together a Drupal module which will achieve this. The post calendar code is inserted into the node body and teaser using nodeapi. Its effectively replacing the normal post info Drupal provides, which should be switched off in the theme.
| Attachment | Size |
|---|---|
| postcalendar.tar.gz | 730 bytes |
| postcalendar.module.phps | 1.41 KB |
| postcalendar-4.7.module.phps | 1.52 KB |
| postcalendar-4.7.tar.gz | 658 bytes |





Comments
Update for Forms API
I've added a new version of the module intended for use in current CVS HEAD (and eventually 4.7) versions of Drupal. This change brings the module up to date using the new Forms API.
Please use the 4.7 module only for sites with Forms API applied.
Hindsight
In hindsight, this is not the best method of achieving the 'post calendar' icons... theming the existing post date seems like a much more sensible option.
Recently I updated this site's theme (based on Internet Jobs by Luka Cvrk), and included some theme tweaks to achieve the same effect.
In node.tpl.php:
In my stylesheet:
Much better.
Thanks!
I know this is as old as dirt, but thanks! This is a nice little UI enhancement. I like the option to "link to the archives"... quite handy. Thanks, Mike