Wikka Documentation

Calendar Action Documentation

Note: this action is included in pnWikka as of version 1.0.

Documentation


Short description
Display a calendar face for a specified or the current month.

Parameters
name type required? default description
year integer optional current year 4-digit year of the month to be displayed; the default can be overridden by providing a URL parameter 'year'
month integer optional current month number of month (1 or 2 digits) to be displayed; the default can be overridden by providing a URL parameter 'month'


Long description
Specifying a month and/or year in the action itself results in a "static" calendar face without navigation; conversely, providing no parameters in the action results in a calendar face with navigation links to previous, current and next month, with URL parameters determining which month is shown (with the current month as default).

You can have one "dynamic" (navigable) calendar on a page (multiple ones would just be the same) and any number of "static" calendars.

The current date (if visible) gets a special class to allow a different styling with CSS.

Usage:
{{calendar [year="yyyy"] [month="mm"]}}


Example (calendar - current date) :

Warning: Smarty error: unable to read resource: "pnWikka_action_calendar.tpl" in /home/pncadmin/sd/dev/www/includes/classes/Smarty/Smarty.class.php on line 1088


Credit:
This action was inspired mainly by the "Calendar Menu" code written by Marcus Kazmierczak (© 1998-2002 Astonish Inc.) which we traced back as being the ultimate origin of this code although our starting point was actually a (probably second-hand) variant found on the web which did not contain any attribution.
However, not much of the original code is left in this version. Nevertheless, credit to Marcus Kazmierczak for the original that inspired this, however indirectly: Thanks!

Author
GmBowen (first draft)
JavaWoman (more modifications)
Frank Chestnut (Port to PostNuke - pnAPI?)


CategoryDocumentation
XML Revisions of $tag
Page history :: Last Editor : Chestnut :: Owner : Chestnut ::
Valid XHTML :: Valid CSS :: Powered by pnWikka 1.0 (A wiki fork from WikkaWiki)
 
DarkMindZ