Calendar

From MODx Wiki
Jump to: navigation, search

Easily customized template for database based calendar.

Snippet Parameters

&calDataSource 
where to get calendar data from
&calDisplay 
display mode (month,day,year)
&calDay 
day to display
&calMonth 
month to display
&calYear 
year to display
&accessMgr 
can manager access
&accessWeb 
Web group names allowed to access insert/update/delete events
&tplHeaderScript 
&tplBodyScript 
&tplTemplate 
Chunk to output to include placeholders.
Placeholders
{+Content+} - to be filled by other template depending on display mode.
{+DebugOutput+} - to be filled with debug output.
{+Year+} -
{+Month+}
{+Day+}
{+ModPath+} - the snippet path
{+Link+}
{+DayLink+}
{+MonthLink+}
{+YearLink+}
{+PermanentLink+}
&tplDayNone 
Chunk to output for day without events
&tplDay 
Chunk to output for every day that has an event.
&tplDayList 
Chunk to output for day events {+Content+} for tplDay
&tplDayAdmin 
Chunk to output for insert,update,delete of event for a day
&tplMonth 
Chunk to output for a month when in month display mode
Placeholders
{+Content+} - to be filled with tplMonthDay, tplMonthDayNone
{+Header+} -
{+ModPath+}
{+MonthLink+}
{+PrevMonthLink+}
{+NextMonthLink+}
&tplMonthDayNone 
Chunk to output when a day has no events, when in month display mode
Placeholders
{+ModPath+}
{+ButtonNew+}
{+DayLink+}
{+Day+}


&tplMonthDay 
Chunk to output for a day when that day has events. When in month display mode
Placeholders
{+Content+} - to be filled with tplMonthDayList
{+ModPath+}
{+ButtonNew+}
{+DayLink+}
{+Day+}
&tplMonthDayList 
Chunk to output for a days events. When in month display mode. :; Placeholders
{+ModPath+}
{+Admin+}
{+category+}
{+year+}
{+month+}
{+day+}
{+calid+}
{+description+}
{+ButtonNew+}
{+DayLink+}
{+Day+}
{+timebegin+}
{+timeend+}


&tplMonthAdmin
Chunk to output for insert,update,delete events. When in month display mode.
Placeholders
{+ModPath+}
{+ButtonEdit+}
{+ButtonDelete+}


&tplYear 
Chunk to output for the entire year. When in year display mode.
Placeholders
{+Header+}
{+PrevYearLink+}
{+NextYearLink+}
{+Month1+}
{+Month2+}
{+Month3+}
{+Month4+}
{+Month5+}
{+Month6+}
{+Month7+}
{+Month8+}
{+Month9+}
{+Month10+}
{+Month11+}
{+Month12+}


&tplYearMonth 
Chunk to output for each month when in year display mode.
Placeholders
{+MonthLink+}
{+Header+}
{+Content+}


&tplYearDayNone 
Chunk to output for each day without events. When in year display mode.
Placeholders
{+DayLink+}
{+Day+}
&tplYearDay 
Chunk to output for every day that has an event. When in year display mode.
Placeholders
{+Year+}
{+Month+}
{+Day+}
{+DayLink+}
{+Content+} - to be filled with tplYearDayList
&tplYearDayList 
Chunk to output for a days events. When in year display mode.
Placeholders
{+timebegin+}
{+timeend+}
{+Admin+}
{+description+}


&tplYearAdmin 
Chunk to output for insert/update/delete of events. When in year display mode.
Placeholders
{+ButtonEdit+}
{+ButtonDelete+}


Placeholders

{+Content+} 
{+Header+} 
{+DebugOutput+} 
{+ModPath+} 
{+Content+} 
{+Year+} 
{+Month+} 
{+Day+} 
{+PermanentLink+} 
{+timebegin+} 
{+timeend+} 
{+PrevYearLink+} 
{+YearLink+} 
{+NextYearLink+} 
{+PrevMonthLink+} 
{+MonthLink+} 
{+NextMonthLink+} 
{+PrevDayLink+} 
{+DayLink+} 
{+NextDayLink+} 
{+ButtonNew+} 
{+ButtonEdit+} 
{+ButtonDelete+} 
{+Admin+} 
{+Month1+} 
{+Month2+} 
{+Month3+} 
{+Month4+} 
{+Month5+} 
{+Month6+} 
{+Month7+} 
{+Month8+} 
{+Month9+} 
{+Month10+} 
{+Month11+} 
{+Month12+} 
Personal tools