Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Templates | ||||||||
Line: 157 to 157 | ||||||||
The second type of template in TWiki are template topics. Template topics define the default text for new topics. There are four types of template topic: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 242 to 242 | ||||||||
4. Specifying variables to be expanded individuallyYou may want to mix variables to be expanded and variables not to be. | ||||||||
Changed: | ||||||||
< < | By prepending a variable name with EOTC__ (EOTC followed by two underscores; EOTC stands for Expand On Topic Creation), you can have the variable expanded. | |||||||
> > | By prepending a variable name with EOTC__ (EOTC followed by two underscores; EOTC stands for Expand On OpenTopics Creation), you can have the variable expanded. | |||||||
Here's an example. | ||||||||
Line: 265 to 265 | ||||||||
See TWikiScripts for information about all the other parameters to edit .
| ||||||||
Changed: | ||||||||
< < | Automatically Generated Unique Topic Names | |||||||
> > | Automatically Generated Unique OpenTopics Names | |||||||
For TWiki applications it is useful to be able to automatically generate unique topic names, such as BugID0001, BugID0002, etc. You can add AUTOINC<n> to the topic name in the edit and save scripts, and it will be replaced with an auto-incremented number on topic save. <n> is a number starting from 0, and may include leading zeros. Leading zeros are used to zero-pad numbers so that auto-incremented topic names can sort properly. Deleted topics are not re-used to ensure uniqueness of topic names. That is, the auto-incremented number is always higher than the existing ones, even if there are gaps in the number sequence. |