ikiwiki/doc/plugins/contrib/jscalendar.mdwn

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2012-03-04 01:26:34 +01:00
[[!meta title="Javascript equivalent of plugin 'calendar'"]]
2012-03-04 01:25:38 +01:00
2012-06-08 01:31:07 +02:00
# Jscalendar
2012-03-04 01:25:38 +01:00
Jscalendar is a javascript equivalent to the [[calendar|plugins/calendar]] plugin.
## Description
Here are some differences compared to this latter plugin.
2012-03-04 01:25:38 +01:00
* Pros
* No need to rebuild the page containing the calendar each time day changes, or
a page (indexed by the calendar) is added, changed or deleted. This is
particularly useful if you want to have this calendar in the sidebar.
2012-03-04 01:30:00 +01:00
* Handles the case where several pages appear the same day: a popup appear to let user choose the day he wants.
2012-03-04 01:25:38 +01:00
* Smooth navigation among months.
* Neutral
* Most of options are defined in Ikiwiki's setup files instead of the options
of the directive.
* Cons
* As a consequence, every calendar of the wiki must index the same set of pages.
* Javascript :( .
## Usage
### Directive
\[[!jscalendar type="month" ]]
### Setup file
It being javascript rather than markdown, most of the configuration must be done in the IkiWiki configuration file rather than in the directive
'archivebase' => "evenements/calendrier",
'archive_pagespec' => "evenements/liste/* and ! evenements/liste/*/*",
'week_start_day' => 1,
'month_link' => 1,
## Example
2012-03-04 01:30:00 +01:00
You can see this plugin in action on [[our website|http://www.gresille.org]]. To see what happens when several pages happens on the same day, check the 15th of March 2012.
2012-03-04 01:25:38 +01:00
2012-06-08 01:31:07 +02:00
Code and documentation can be found here : [[https://atelier.gresille.org/projects/gresille-ikiwiki/wiki/Jscalendar]]
2012-03-04 01:25:38 +01:00
2012-06-08 01:31:07 +02:00
-- Louis