SSI with phpiCalendar

Here are instructions for including phpiCalendar events in a web page via SSI (server-side include). You may see an example on insideUHS.

Make a new .tpl in templates/default or make a copy of an existing one. Add the appropriate calendar fields and HTML comments. My file looks like this:

<!-- switch some_events on -->
<!-- loop events on -->
<tr><td class=celldivider><P>{EVENT_TEXT}, {EVENT_START}</td></tr>
<!-- switch description_events on -->
<!-- switch description_events off -->
<!-- loop events off -->
<!-- switch some_events off -->

<!-- switch no_events on -->


<!-- switch no_events off -->

If you want to include more fields than this, then study existing .tpl files to see what your other options are. It is important to include the HTML comments in the file, as phpiCalendar uses them to parse the template.

Make a copy of day.php and rename it to a name of your choice.

Edit line 39 to read as follows:

$page = new Page(BASE.'templates/'.$template.'/yourtemplate.tpl');

(yourtemplate is the name of your template file)

The SSI URL will be something like:


Comments are closed.