Line: 1 to 1 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
Line: 12 to 12 | |||||||||||||||||||||
Predefined Variables | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | With a couple of notable exceptions, predefined variables return set values that are defined on installation and left alone. Most are directory names and file paths, customized for your server, and only have to be updated once in the main configuration file if your server set-up changes. | ||||||||||||||||||||
> > | Most predefined variables return values that were either defined when TWiki was installed, or taken from server info (like current username, or date and time). Many of the variables let you control how the formatted results appear. | ||||||||||||||||||||
The Caboteria expands the following variables (enclosed in % percent signs): | |||||||||||||||||||||
Line: 205 to 205 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
%SEARCH{"wiki" web="Main" scope="topic"}% | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | |||||||||||||||||||||
> > | |||||||||||||||||||||
%SEARCH{... format="..."}% |
Control the formatting of an embedded search. By default, the search result display format is fixed: a table with rows of topic name and topic summary. Use the format="..." parameter to specify a custom format, typically, a bullet list or table row containing variables Ex: %SEARCH{ "food" format="| $topic | $summary |" }% ) Two paramters can be used to specify a customized search result: 1. header="..." parameter Use the header paramter to specify the header of a search result. It should correspond to the format of the format parameter. This parameter is optional. Ex: header="| *Topic:* | *Summary:* |" 2. format="..." parameter Use the format paramter to specify the format of one search hit. Ex: format="| $topic | $summary |" Variables that can be used in the format string:
$pattern(reg-exp) , specify a RegularExpression that scans from start to end and contains the text you want to keep in parenthesis, ex: $pattern(.*?(from here.*?to here).*) . You need to make sure that the integrity of a web page is not compromised, i.e. if you include a table make sure to include everything including the table end tag. NOTE: Sorting is nicely covered by the TablePlugin. For how-to tips and tricks, see: TWikiVariablesExamples |
||||||||||||||||||||
%METASEARCH{...}% |
Special search of meta data
| ||||||||||||||||||||
Line: 235 to 260 | |||||||||||||||||||||
[1] Note: The search form uses identical names for input fields.
[2] Note: A web can be excluded from a web="all" search if you define a NOSEARCHALL=on variable in its WebPreferences. | |||||||||||||||||||||
Deleted: | |||||||||||||||||||||
< < | [3] Note: Regular search, no summary, BookView and FormattedSearch are exclusive. | ||||||||||||||||||||
Preferences Variables | |||||||||||||||||||||
Line: 354 to 377 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Creating Custom Variables
| ||||||||||||||||||||
> > | Customizing Variables | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Example: Create a custom logo variable | ||||||||||||||||||||
> > | See: TWikiVariables Examples | ||||||||||||||||||||
Deleted: | |||||||||||||||||||||
< < | -- MikeMannix - 30 Aug 2001 | ||||||||||||||||||||
-- PeterThoeny - 13 Sep 2001 | |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | -- MikeMannix - 30 Nov 2001 |