Categories:
Author:
Current version:
1.2
About It:
Get it:
Rate it:
Flag it:
If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
cnn_month_select
This is a very simple plugin (hack) that adds functionality to either mdp_calendar or zem_event. It simply creates a select form that will allow you to choose a month and year and automatically jump to the month.
I figure that if I needed it, maybe someone else will also. It’s my first plugin, so if I did something stupid or if there are any bugs, let me know (but be nice…). It’s so simple though, I can’t imagine that there are any huge problems…
Download
Usage:
Just place a <txp:cnn_month_select />
tag wherever you want the form to appear.
Attributes:
plugin
- the plugin that creates the calendar
- optional values are
zem_event
ormdp_calendar
- default is
zem_event
id
- the
id
attribute of theform
element - default is
monthSelectForm
- the
action
- the
action
attribute of the form - default is blank
- this only needs to be used if you want to place the form on a different page from the calendar itself.
- the
wraptag
- the html tag to wrap the form elements in
- default is
div
monthselectid
- the
id
attribute of the monthselect
element - default is
monthSelect
- the
monthlabel
- the
label
text for the month select element - default is
Month:
- example usage:
<txp:cnn_month_select monthlabel="Choose a month: " />
- the
yearselectid
- the
id
attribute of the yearselect
element - default is
yearSelect
- only needed used with mdp_calendar
- the
yearlabel
- the
label
text for the year select element - default is
Year:
- only needed used with mdp_calendar
- the
submitvalue
- the value of the form’s submit button
- default is
Go
submitid
- the
id
attribute of thesubmit
button - default is blank
- the
submitclass
- the
class
attribute of thesubmit
button - default is
button
- the
Changelog
July 14, 2008 – Version 1.2
- Fixed a bug where the list options would always show the same months, regardless of what month was being viewed.
- Cleaned up the code a little to be easier to read and (possibly) update.
July 10, 2008 – Version 1.1
- I forgot to add the id attribute to the select elements. This is fixed.
- Added the
monthlabel
andyearlabel
attributes to the plugin. (See above or the plugin help for usage instructions.)
June 30, 2008 – Version 1.0
- Fixed a bug that caused the form to show the current month instead of the month being viewed by the calendar.
Keywords/tags:
Initially released:
June 27, 2008
Posted here:
27 Jun 2008