Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
%SEARCH{... format="..."}% Variable | ||||||||
Line: 14 to 14 | ||||||||
1. header="..." parameter | ||||||||
Changed: | ||||||||
< < | 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. I.e. header="| *Topic:* | *Summary:* |" | |||||||
> > | 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. I.e. header="| *Topic:* | *Summary:* |" | |||||||
2. format="..." parameter | ||||||||
Changed: | ||||||||
< < | Use the format paramter to specify the format of one search hit. I.e. format="| $topic | $summary |" | |||||||
> > | Use the format paramter to specify the format of one search hit. I.e. format="| $topic | $summary |" | |||||||
Variables that can be used in the format string:
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Note: For | ||||||||
Line: 52 to 55 | ||||||||
Write this in the Know web:
| ||||||||
Changed: | ||||||||
< < | %SEARCH{ "[T]opicClassification.*?value=\"[P]ublicFAQ\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" }% | |||||||
> > | %SEARCH{ "[T]opicClassification.*?value=\"[P]ublicFAQ\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" }% | |||||||
To get this: | ||||||||
Line: 79 to 82 | ||||||||
TWiki FAQs:
| ||||||||
Changed: | ||||||||
< < | -- PeterThoeny - 24 Oct 2001 | |||||||
> > | -- PeterThoeny - 28 Nov 2001 |
Line: 1 to 1 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | ||||||||||||||||||||||||||||||||
> > |
%SEARCH{... format="..."}% Variable
On this page:
Preface
By default, the format for displaying a search result is fixed, e.g. a table with rows of topic name and topic summary. Use the
SyntaxTwo paramters can be used to specify a customized search result:
1.
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. I.e.
2.
Use the format paramter to specify the format of one search hit. I.e. Variables that can be used in the format string:
Note: For
Examples
Bullet list showing topic name and summaryWrite this:
To get this:
Table showing form field values of topics with a formWrite this in the Know web:
To get this:
Extract some text from a topic using regular expressionWrite this:
To get this: TWiki FAQs:
-- PeterThoeny - 24 Oct 2001 |