Using Templates

This program includes about 20 template files or collections of colors, fonts, images. Template files can be used to quickly change all the visual related aspects of a calendar.

You may change templates using the Change Template option. You may reset the current calendar's template to the default template with the Reset Template option.

Do not confuse these template (which are really only pre-set collections of fonts, font sizes, borders, colors, etc.) with Display Templates which are an HTML web page that you can create that contains special calendar tags that are replaced with the calendar code.

Creating your own templates

To create you own template files you may follow the following steps:

  1. Create a calendar using a template similar to your final design.


  2. Modify the Calendar Configuration File by hand until the calendar looks the way you would like it to look.

    In particular you may edit the [IMAGES], [COLORS], [TEXTCOLORS], [HEADER], [FOOTER] groupings and to a lesser extent the [BORDER], [PADDING], [SPACING] and [ALIGN] groupings.


  3. Copy the calendar configuration file ( calweb.ini from the Calendar Folder) to the ./cgi-bin/calweb/cw_templates folder and rename it to my_template_name.tem (where my_template_name is any name you choose).


  4. Change the template_name= item in the [PAGE] grouping to my_template_name.tem.


  5. Change the calendar_name= item in the [PAGE] grouping to any name you like. This is the name of the template as appears in the Template Drop Down.

The next time you run the program your template will appear in the Template Drop Down under the Administer screen.