1. Add calendar to a page
Create a page containing the calendar. The calendar is displayed where you put the code below.
Code:
#cmsimple $output.=calendar('','','somepage')#
This will display current month and year and link events to eventspage called somepage
The code below will display current month and next month
Code:
#cmsimple $output.=calendar('','','somepage'); $output.=calendar(date("Y",time()),date("n",time())+1,'somepage');#
2. Add events page
Create a page called eg. somepage on the page add the code below.
Code
#cmsimple $output.=events();#
This will display events for current year and month.
The code below will display events for current month plus next two months
Code
<H1>somepage</H1>
#cmsimple $output.=events('','','3'); #
If you want to display the events from the month you select in the calendar use this code, also the selcted month + 2 months (maybe you should edit the content file directly to make this work properly).
Code
<H1>somepage</H1>
#cmsimple $output.=events($year,$month,'3');#
3. Managing the calendar plugin
The plugin can be managed by logging into cmsimple as manager, select the calendar plugin from the avaliable plugins drop downbox. and you are off, the events are managed in the main settings, the stylesheet,config or language from the corresponding buttons.
Events are added using the format:
<dd-mm-yyyy>;<Event>;<Time and Location>
If <Time and Location> is gives as ### it indentifies it a birthday and age is calgulated to be displayed on the eventpage.