diff options
author | Peter Thoeny <web-hurd@gnu.org> | 2001-11-29 07:02:46 +0000 |
---|---|---|
committer | Peter Thoeny <web-hurd@gnu.org> | 2001-11-29 07:02:46 +0000 |
commit | 6978426077c6b511f2cecfd99242e86dc0598459 (patch) | |
tree | c1045773374eec82e8ce9aad2e278591238cedc8 /TWiki | |
parent | f7b2deebab76415e1a3ea902c1f76dd088775ffc (diff) |
none
Diffstat (limited to 'TWiki')
-rw-r--r-- | TWiki/FormattedSearch.mdwn | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/TWiki/FormattedSearch.mdwn b/TWiki/FormattedSearch.mdwn index 89b49c92..3849b299 100644 --- a/TWiki/FormattedSearch.mdwn +++ b/TWiki/FormattedSearch.mdwn @@ -12,11 +12,11 @@ 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. I.e. <code>header="| \*Topic:\* | \*Summary:\* |"</code> +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. <br /><code>header="| \*Topic:\* | \*Summary:\* |"</code> 2. `format="..."` parameter -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. <br />`format="| $topic | $summary |"` Variables that can be used in the format string: @@ -26,6 +26,10 @@ Variables that can be used in the format string: <th bgcolor="#99CCCC"><strong>Expands To:</strong></th> </tr> <tr> + <td><code>$n</code></td> + <td> New line </td> + </tr> + <tr> <td><code>$web</code></td> <td> Name of the web </td> </tr> @@ -39,7 +43,11 @@ Variables that can be used in the format string: </tr> <tr> <td><code>$date</code></td> - <td> Time stamp of last topic update </td> + <td> Time stamp of last topic update, i.e. <code>%GMTIME{"$day $mon $year - $hour:$min"}%</code></td> + </tr> + <tr> + <td><code>$isodate</code></td> + <td> Time stamp of last topic update, i.e. <code>%GMTIME{"$year-$mo-$dayT$hour:$minZ"}%</code></td> </tr> <tr> <td><code>$rev</code></td> @@ -50,12 +58,16 @@ Variables that can be used in the format string: <td> Wiki user name of last topic update, i.e. <code>%MAINWEB%.<nop>JohnSmith</nop></code></td> </tr> <tr> + <td><code>$username</code></td> + <td> User name of last topic update, i.e. <code><nop>JohnSmith</nop></code></td> + </tr> + <tr> <td><code>$summary</code></td> <td> Topic summary </td> </tr> <tr> <td><code>$formfield(name)</code></td> - <td> The field value of a form field, i.e. <code>$formfield(<span style="background:"><font color="">Topic Classification</font></span><a href="http://LOCATION/TopicClassification">?</a>)</code> would get expanded to <code>PublicFAQ</code>. This applies only to topics that have a <span style="background:"><font color="">TWiki Form</font></span><a href="http://LOCATION/TWikiForms">?</a></td> + <td> The field value of a form field, i.e. <code>$formfield(<nop>TopicClassification)</nop></code> would get expanded to <code>PublicFAQ</code>. This applies only to topics that have a <span style="background:"><font color="">TWiki Form</font></span><a href="http://LOCATION/TWikiForms">?</a></td> </tr> <tr> <td><code>$pattern(reg-exp)</code></td> @@ -81,7 +93,7 @@ To get this: Write this in the Know web: -<code>| \*Topic:\* | \*OperatingSystem:\* | \*OsVersion:\* |</code><br /><code>%SEARCH\{ "[T]opicClassification.\*?value=\\"[P]ublicFAQ\\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield([[OperatingSystem]]) | $formfield([[OsVersion]]) |" \}%</code> +<code>| \*Topic:\* | \*OperatingSystem:\* | \*OsVersion:\* |</code><br /><code>%SEARCH\{ "[T]opicClassification.\*?value=\\"[P]ublicFAQ\\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" \}%</code> To get this: @@ -113,4 +125,4 @@ To get this: %SEARCH\{ "\_\_Back to\\:\_\_ [[TWikiFAQ]]" scope="text" regex="on" nosearch="on" nototal="on" header="TWiki FAQs:" format=" \* $pattern(.\*?FAQ\\:[\\n\\r]\*([^\\n\\r]+).\*) [[Topic]]" \}% --- [[Main/PeterThoeny]] - 24 Oct 2001 <br /> +-- [[Main/PeterThoeny]] - 28 Nov 2001 <br /> |