Twiki Usage Tips

Highlighting

Twiki syntax allows you to choose the color of the text, but not a way to easily highlight -- like using a felt-tip highlighter

Just enclose the text with the following

<span style="background:yellow"> highlight -- like using a felt-tip highlighter </span>

Formatted Search of Form Fields

  • Use a string like the following: "FormFieldName\" value=\".*Target.*\"

Block to create form to create a topic

  • with specific topic template and form.
  • And with name specified by the user.
  • Change TYPE and TEMPLATETOPICNAME for each use.

<form action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/">
*Add new TYPE:* <br />
<input type="text" name="topic" size="32" />
<input type="hidden" name="templatetopic" value="TEMPLATETOPICNAME" />
<input type="hidden" name="topicparent" value="PARENTTOPICNAME" />
<input type="submit" value="Add new TYPE" />
</form>

Auto-create a topic directly from a link

  • One click and auto-numbered topic is created.
  • Replace "BaseN" with a unique Wiki Name? Base for each series, if you wish to have topic name clickable or
  • Replace "BaseN" with nonWikiName base for each series, such as "M" to create a shortest name that is not clickable.
  • Check number of zeros for length of the number used, such as 00000 means five digits (fixed length).
  • Replace TEMPLATE with the name of the base template
  • Replace PARENTTOPIC with the parent topic name.
  • Replace FORMTEMPLATE with the name of the form to attach.
  • Replace TYPE with the readable name of this type of topic.

[[%SCRIPTURLPATH{"edit"}%/%WEB%/BaseNAUTOINC00000?templatetopic=%WEB%.TEMPLATE&topicparent=%WEB%.PARENTTOPIC&formtemplate=FORMTEMPLATE][Submit New TYPE]]* - Click here to create a new TYPE.

-- Raymond Lutz - 09 Aug 2007

Topic revision: r4 - 2008-06-30 - 04:52:18 - Raymond Lutz
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback