demo
templates
install
contact
Home Tips Calendar

Month & Year Icons on other pages

The Month & Year icoms are shown on the default calendar page, but not on another page where the [events] tag is used. To get around this, a calendar page can be instead [include]'ed on the page. To avoid the neted inclusion of the menus and other page layout features, a different template that is very plain & simple must be used.

Here's the template:


<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td><?php echo $content; ?></td>
    <td valign="top"><?php echo $sidebar; ?></td>
  </tr>
</table>

This is saved to the root of the web site as 'incTemplate.php'.

Then, include a calendar into another page (such as 'News' or 'Events') with an include tag such as [include]http://contentor.net/calendar?template=incTemplate.php[/include]

The result is shown below: