2014-07-03 22:21:38 +02:00
|
|
|
[[!meta author="spalax"]]
|
2013-12-04 15:52:33 +01:00
|
|
|
[[!template id=plugin name=jscalendar author="[[Louis|spalax]]"]]
|
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
|
|
|
|
2012-06-08 01:38:12 +02: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.
|
|
|
|
* Smooth navigation among months.
|
|
|
|
* Cons
|
|
|
|
* Javascript :( .
|
|
|
|
|
2012-06-08 01:38:12 +02:00
|
|
|
## Usage
|
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
### Examples of directive
|
2012-06-08 01:38:12 +02:00
|
|
|
|
|
|
|
\[[!jscalendar type="month" ]]
|
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
\[[!jscalendar type="month" archivebase="calendar"]]
|
|
|
|
|
|
|
|
\[[!jscalendar type="month" year=2014 month=08 pages="posts/* and !posts/*"]]
|
|
|
|
|
|
|
|
\[[!jscalendar type="month" year=-1 month=08]]
|
|
|
|
|
2012-06-08 01:38:12 +02:00
|
|
|
### Setup file
|
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
This plugin uses the options used by the [[plugins/calendar]] plugin:
|
2012-06-08 01:38:12 +02:00
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
'archivebase' => "archive",
|
|
|
|
'archive_pagespec' => "posts/* and ! posts/*/*",
|
2012-06-08 01:38:12 +02:00
|
|
|
'week_start_day' => 1,
|
|
|
|
'month_link' => 1,
|
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
The `archivebase` and `archive_pagespec` can be overloaded by the very same
|
|
|
|
options of the directive.
|
|
|
|
|
2012-06-08 01:38:12 +02:00
|
|
|
## Example
|
|
|
|
|
2014-07-03 22:21:38 +02:00
|
|
|
You can see this plugin in action on [[our website|http://www.gresille.org]].
|
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
|