Page Templates

  • XML declaration header must be defined.
  • Page template files must be placed in folder "/tmpl".
  • Default page template is page.xml, others must be referred to as &type=[Filename without xml-Extension].
<?xml version="1.0" encoding="UTF-8"?>
<template>

   <config><![CDATA[
  
... this section will be parsed, but will not produce any visible output ...
]]></config>

   <body><![CDATA[
  
... visible page content ...
   ]]></body>

</template>

Static Module Templates

  • XML declaration header must not be defined.
  • Files must be placed in folder "/mod/MODULE/".
  • Default module is defined by master template, others must be referred to as &mod=[MODULE] (if supported by master template).
  • Default module template is index.xml, others must be referred to as &tab=[Filename without xml-Extension].
  • Static module templates require a page/master template for them to be loaded/executed.
  • 0-n Custom tags may be defined to be placed/executed in different locations on page/master template (e.g. some HTML-Code to be shown or some JavaScript that should be executed in a onload-Event).
<module>

   <body><![CDATA[
  
... content ...
   ]]></body>

   <TAG_1><![CDATA[
  
... content ...
   ]]></TAG_1>

   <TAG_N><![CDATA[
  
... content ...
   ]]></TAG_N>

</module>

Ajax Module Templates

  • XML declaration header must not be defined.
  • Files must be placed in folder "/mod/MODULE/sys".
  • Modules must be referred to as &mod=[MODULE]&tab=[Filename without xml-Extension].
  • AJAX module templates do not depend on a page/master template.
  • Files in sys-Folders cannot directly be accessed without a valid session that belongs to a usergroup with access.
  • All of the following tags may occur 0-n times.
Javascript to be executed immediately (cannot be cached)
<script><![CDATA[
... javascript code ...
]]></script>
Javascript to be loaded from file
<js id="UNIQUE SCRIPT ID" cache="no|yes"><![CDATA[URL]]></js>
Javascript to be loaded inline
<js id="UNIQUE SCRIPT ID" type="inline" cache="no|yes"><![CDATA[
... javascript code ...
]]></js>
Stylesheet to be loaded from file
<css id="UNIQUE STYLE ID" cache="no|yes"><![CDATA[URL]]></css>
Stylesheet to be loaded inline
<css id="UNIQUE STYLE ID" type="inline" cache="no|yes"><![CDATA[
... css code ...
]]><css>