In order to create your own templates copy one of the template directories and start to modify the files in there. Usually it should be enough to change the layout.html template. If you use relative links inside your templates they will be interpreted as relative to the index.php script.
Variables can be set and unset using the special #set and #unset commands:
#set:VARIABLE=value #set:LONGVARIABLE: some values containing anything #endsetThe first version of the set-syntax just assigns everything behind the "=" to the variable named before it. The second version of the set-syntax assigns everything between the #set and #unset lines without replacing any values or interpreting any syntax.
Conditional parts of the template text can be put between #if and #endif:
#if:VARIABLE==value text that only appears if VARIABLE contains value #endifAll comparisons are made as string comparisons (this eg. means "2" is greater than "100") with both the variable and the comparison value trimmed. Possible operators are:
== | matches if the variable contains exactly this value |
< | matches if the variable is smaller than this value |
> | matches if the variable is greater than this value |
<= | matches if the variable is smaller or equal to this value |
>= | matches if the variable is greater or equal to this value |
!= or <> | matches if the variable does not contain this value |
The only variable inside it is @PAGE@ which is replaced by the context created using one of the other templates.