summaryrefslogtreecommitdiff
path: root/doc/patchqueue
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-10 00:53:01 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-10 00:53:01 +0000
commitaf2ea16765ffcae98d2f33daef64aca71e7e199b (patch)
treeac0709d83249b4f493ab5379f3f5ef97b566e77a /doc/patchqueue
parentc5de930a63e89c4393ee25c5c18b7eb2681af574 (diff)
web commit by ManojSrivastava
Diffstat (limited to 'doc/patchqueue')
-rw-r--r--doc/patchqueue/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/patchqueue/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn b/doc/patchqueue/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn
new file mode 100644
index 000000000..b971c3839
--- /dev/null
+++ b/doc/patchqueue/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn
@@ -0,0 +1,17 @@
+This plugin is inspired by the calendar plugin for Blosxom, but derivesno 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. To invoke the calendar, just use the preprocessor directive:
+
+ \[[calendar ]]
+
+or
+
+ \[[calendar type="month" pages="blog/* and !*/Discussion"]]
+
+or
+
+ \[[calendar type="year" year="2005" pages="blog/* and !*/Discussion"]]
+
+
+The year and month entities in the out put have links to archive index pages, which are supposed to exist already. The idea is to create an archives hierarchy, rooted in the subdirectory specified in the site-wide customization variable, archivebase. archivebase defaults to "archives". Links are created to pages "$archivebase/$year" and "$archivebase/$year/$month". The idea is to create annual and monthly indices, for example, by using something like this sample from my archives/2006/01.mdwn
+
+ \[[meta title="Archives for 2006/01"]]
+ \[[inline rootpage="blog" atom="no" rss="no" show="0" pages="blog/* and !*/Discussion and creation_year(2006) and creation_month(01)" ]]