calendar.list
Displays a calendarlist
Parameters
{{ calendar.list(id, title, count, color, repeat, calendar, weekday, info, daycount) }}
id
unique id for this widget (optional)
title
a title to display (optional)
count
the number of displayed calendar entries (optional, default 25)
color
one color for all or a list of colors for each calendar (optional, grey or as defined in configuration)
repeat
the refresh interval for this widget (optional, default 1h)
calendar
name of calendars to show, multiples in array form (optional, default: as defined in configuration)
weekday
option to display the weekdays: 'D' = short format, 'l' = full name. Mind conflicts with the format "calendardate" in the language file (optional, default = '')
info
option for display of link and location info: ''= on the list item, 'active'= in a clickable content field (optional, default = '')
daycount
the time span for the calendar counted in days. '0' means all entries. (optional, default 0)
Examples
{{ calendar.list('', '', 3) }}
Events of one calendar only, short weekday format and clickable info field:
(refresh page if no info field is shown)
{{ calendar.list('', 'Events in "Personal"', 3, '', '', 'Personal','D', 'active') }}
Calendars with individual colors and long weekday format:
{{ calendar.list('', '', 3, ['#993399','green'], '', ['Personal','Waste'], 'l') }}
You can specify your own icons and colors for calendar events in the language file , e.g. .dropins/lang/mylang.ini in the section "[calendar_event_format]".
blue bin[icon] = message_garbage
blue bin[color] = #0000FF
Attention: calendar.list searches for the specified keywords and applies icon and color to the event if it's title
contains a keyword. With the above example it will display the same for "buy blue binoculars"
and "blue bin". Specify the more specific keywords in sequence behind the more general ones in order to optimize pattern matching.
A default icon and color can be defined using "default_img_list". If no default is defined a transparent image "trans.png" will be displayed.
default_img_list[icon] = message_achtung
default_img_list[color] = "rgb(32, 178, 170)"
Author: Martin Gleiß, Stefan Widmer