ikiwiki/ plugins/ calendar

Plugin: calendar
Author: ManojSrivastava
Included in ikiwiki: yes
Enabled by default: no
Included in goodstuff: no
Currently enabled: no

This plugin displays a calendar, similar to the typical calendars shown on some blogs.

examples

[[calendar ]]

[[calendar type="month" pages="blog/* and !*/Discussion"]]

[[calendar type="year" year="2005" pages="blog/* and !*/Discussion"]]

This plugin is inspired by the calendar plugin for Blosxom, but derives no code from it. This plugin is essentially a fancy front end to archives of previous pages, usually used for blogs. It can produce a calendar for a given month, or a list of months for a given year.

Since ikiwiki is a wiki compiler, to keep the calendar up-to-date, wikis that include it need to be preiodically refreshes, typically by cron at midnight. Example crontab:

0 0 * * * ikiwiki -setup ~/ikiwiki.setup -refresh

The month format calendar simply links to any page posted on each day of the month. The year format calendar links to archive pages, with names like archives/2007 (for all of 2007) and archives/2007/01 (for January, 2007). For this to work, you'll need to create these archive pages. They typically use inline to display or list pages created in the given time frame.

usage

CSS

The output is liberally sprinkled with classes, for fine grained CSS customization.