Difference: TWikiTemplates (38 vs. 39)

Revision 392020-01-22 - TWikiAdminUser

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:
<
<
Topic Name: What it is:
>
>
OpenTopics Name: What it is:
 
WebTopicViewTemplate Alert page shown when you try to view a nonexistent topic. This page is usually used as a prompt to help you create a new topic.
WebTopicNonWikiTemplate Alert page shown when you try to view a nonexistent topic with a non-WikiName. Again, this page is used as a prompt to help you create the new topic.
WebTopicEditTemplate Default text used in a new topic.
Line: 242 to 242
 

4. Specifying variables to be expanded individually

You 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.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. <br /> Ideas, requests, problems regarding lt;nopgt;TWiki? lt;a href='mailto:twiki-admin@kcl.ac.uk?subject=TWiki%20Feedback%20on%20TWiki.TWikiTemplates'gt;Send feedbacklt;/agt; <br /> Note: Please contribute updates to this topic on TWiki.org at <a href="http://twiki.org/cgi-bin/view/TWiki/TWikiTemplates" target="twiki.org">TWiki:TWiki.TWikiTemplates</a>.