Line: 1 to 1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
TWiki Variables | ||||||||||
Changed: | ||||||||||
< < | Text strings expanded on the fly to display data or system info
Overview | |||||||||
> > | Special text strings expand on the fly to display user data or system info | |||||||||
TWikiVariables are text strings - %VARIABLE% - that expand into content whenever a page is opened. When a topic is rendered for viewing, VARIABLES are replaced by data, either user-entered, or info automatically generated by TWiki (like the date, or the current username). There are predefined variables, and Preference variables that you configure. You can also define custom variables, with new names and values. | ||||||||||
Line: 212 to 210 | ||||||||||
| ||||||||||
Changed: | ||||||||||
< < |
%SEARCH{"wiki" web="Main" scope="topic"}% | |||||||||
> > |
%SEARCH{"wiki" web="Main" scope="topic"}% Formatted example: %SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="| $topic | $summary |"% (displays results in a table with header - details)
| |||||||||
| ||||||||||
Line: 221 to 221 | ||||||||||
type="topicmoved" | What sort of search is required? "topicmoved" if search for a topic that may have been moved | ||||||||||
Changed: | ||||||||||
< < | "parent" if searcing for topics that have a specific parent i.e. its | |||||||||
> > | "parent" if searching for topics that have a specific parent i.e. its | |||||||||
children | required |
| ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > |
| |||||||||
Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}% , you may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate%METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
| ||||||||||
Line: 366 to 366 | ||||||||||
-- PeterThoeny - 13 Sep 2001 | ||||||||||
Changed: | ||||||||||
< < | -- MikeMannix? - 05 Jan 2002 | |||||||||
> > | -- MikeMannix? - 23 Jan 2002 |