Specifying General Information About Template

An important step in creating a template is to specify basic technical information about the template in order for the template to be correctly recognized by Sitebuilder. For that purpose you should create a special file named info.xml that will contain all relevant information about the template, and put it into the template directory.

The structure of the info.xml file:

<?xml version="1.0" encoding="UTF-8"?>

<template id="yourCompany-business-001" version="1.0" caption="Business site" formatVersion="4" keywords=" business books" category="Business" >

  <themes default="yellow">

    <theme id="green" caption="Green theme"/>

    <theme id="yellow" caption="Yellow theme"/>

    <theme id="orange" caption="Orange theme"/>

  </themes>

  <compatibility>

    <screen>

      <minwidth>800</minwidth>

    </screen>

    <browsers>

      <browser>MS IE 6.0</browser>

      <browser>Mozilla FireFox 1.5</browser>

      <browser>Opera 8</browser>

    </browsers>

    <modules>

      <module>Blog</module>

      <module>ImageGallery</module>

    </modules>

  </compatibility>

</template>

The first line, called XML declaration, defines the version of XML and the charset used in the document.

The root element of the document is template. It has the following attributes:

The template element has the following child elements: