<<O>> Difference Topic TWikiVariables (r1.46 - 02 Dec 2001 - MikeMannix?) |
Line: 1 19 to 1 19 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Changed: | |||||||||||||||||||||||
< < |
| ||||||||||||||||||||||
> > |
| ||||||||||||||||||||||
Line: 212 to 213 | |||||||||||||||||||||||
Added: | |||||||||||||||||||||||
> > |
| ||||||||||||||||||||||
Line: 216 to 216 | |||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||
< < |
%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 |
|||||||||||||||||||||
Line: 269 to 244 | |||||||||||||||||||||||
Changed: | |||||||||||||||||||||||
< < |
| ||||||||||||||||||||||
> > |
| ||||||||||||||||||||||
Line: 380 to 355 | |||||||||||||||||||||||
Changed: | |||||||||||||||||||||||
< < |
Customizing Variables | ||||||||||||||||||||||
> > |
Creating Custom Variables | ||||||||||||||||||||||
Line: 382 to 357 | |||||||||||||||||||||||
Changed: | |||||||||||||||||||||||
< < |
See: TWikiVariables Examples | ||||||||||||||||||||||
> > |
Example: Create a custom logo variable |
Topic TWikiVariables . { View | Diffs | r1.46 | > | r1.45 | > | r1.44 | More } output as: { } |
Revision r1.45 - 30 Nov 2001 - 10:14 - MikeMannix? Revision r1.46 - 02 Dec 2001 - 11:58 - MikeMannix? |