| |||||||||||||||||||||
Line: 59 to 59 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTML Page Templates | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
TWiki uses HTML template files for all actions, like topic view, edit, and preview. This allows you to change the look and feel of all pages by editing just a few template files. | ||||||||||||||||||||
> > |
TWiki uses HTML template files for all actions, like topic view, edit, and preview. This allows you to change the look and feel of all pages by editing just a few template files. | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
Templates are in the twiki/templates directory. As an example, twiki/templates/view.tmpl is the template file for the twiki/bin/view script. Templates can be overloaded by individual webs. The following search order applies:
| ||||||||||||||||||||
> > |
Templates are stored either in the twiki/templates directory or in user topics. As an example, twiki/templates/view.tmpl is the template file for the twiki/bin/view script.
| ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
Templates can be overloaded by individual webs. | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
NOTE: TWikiSkins can be defined to overload the standard templates. | ||||||||||||||||||||
> > |
TWikiSkins can overload the standard templates.
TWiki uses the following search order to determine which template to use:
Additionally (and primarily for use in %TMPL:INCLUDE{}% ) the template name may be a wiki topic name, specified as Web.Topic , in which case the search is:
If Web is not specified in the INCLUDE, it defaults to TWiki, and the search to the first type. | ||||||||||||||||||||
Special variables are used in templates, especially in view , to display meta data.
| |||||||||||||||||||||
Line: 149 to 166 | |||||||||||||||||||||
| |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > |
| ||||||||||||||||||||
| |||||||||||||||||||||
Line: 252 to 270 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
-- TWiki:Main.PeterThoeny - 25 Apr 2004 | ||||||||||||||||||||
> > |
-- TWiki:Main.CrawfordCurrie - 30 Jun 2004 -- TWiki:Main.PeterThoeny - 15 Aug 2004 | ||||||||||||||||||||
-- TWiki:Main.MikeMannix - 14 Sep 2001 -- TWiki:Main.DavidLeBlanc - 11 Mar 2002 |