Highlighting Specific Dates

Highlighting specific dates in a Calendar is fairly simple. The procedure requires two steps: first, you need to create an 'Events' XML file that lists all dates that you want to highlight, and second, specify the eventsurl attribute to point to this XML file.

Creating An Events XML File

The format of the Events XML file is very simple, and looks like this:

<?xml version="1.0" encoding="utf-8"?>
<root fields="startdate|enddate|location|description|type|cssClass|cssStyle">
    <e a="2008-01-01" e="event" h="background-color:blue"/>
    <e a="2008-07-05" e="event" h="background-color:red" />
</root>

This example Events XML file has two highlighted dates: July 1st, 2008 and July 7, 2008. To change the date, change the date in the a attribute of the e node. Of course, you can add more highlighted dates by adding more e nodes.

Attaching The Events XML To Your Calendar

The eventsurl attribute of your Calendar declaration should simply point to the XML file. Done!

page_revision: 1, last_edited: 1238027837|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License