From 6978426077c6b511f2cecfd99242e86dc0598459 Mon Sep 17 00:00:00 2001 From: Peter Thoeny Date: Thu, 29 Nov 2001 07:02:46 +0000 Subject: none --- TWiki/FormattedSearch.mdwn | 24 ++++++++++++++++++------ 1 file 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. 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 -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: @@ -25,6 +25,10 @@ Variables that can be used in the format string: Name: Expands To: + + $n + New line + $web Name of the web @@ -39,7 +43,11 @@ Variables that can be used in the format string: $date - Time stamp of last topic update + Time stamp of last topic update, i.e. %GMTIME{"$day $mon $year - $hour:$min"}% + + + $isodate + Time stamp of last topic update, i.e. %GMTIME{"$year-$mo-$dayT$hour:$minZ"}% $rev @@ -49,13 +57,17 @@ Variables that can be used in the format string: $wikiusername Wiki user name of last topic update, i.e. %MAINWEB%.JohnSmith + + $username + User name of last topic update, i.e. JohnSmith + $summary Topic summary $formfield(name) - The field value of a form field, i.e. $formfield(Topic Classification?) would get expanded to PublicFAQ. This applies only to topics that have a TWiki Form? + The field value of a form field, i.e. $formfield(TopicClassification) would get expanded to PublicFAQ. This applies only to topics that have a TWiki Form? $pattern(reg-exp) @@ -81,7 +93,7 @@ To get this: Write this in the Know web: -| \*Topic:\* | \*OperatingSystem:\* | \*OsVersion:\* |
%SEARCH\{ "[T]opicClassification.\*?value=\\"[P]ublicFAQ\\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield([[OperatingSystem]]) | $formfield([[OsVersion]]) |" \}% +| \*Topic:\* | \*OperatingSystem:\* | \*OsVersion:\* |
%SEARCH\{ "[T]opicClassification.\*?value=\\"[P]ublicFAQ\\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" \}% 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
+-- [[Main/PeterThoeny]] - 28 Nov 2001
-- cgit v1.2.3