Tags:
create new tag
, view all tags

Formatted Search with Separator Parameter

A new separator parameter has been added to %SEARCH{}%. Spec:

Parameter: Description: Default:
separator=", " Line separator between hits Newline "$n"

See doc in TWikiVariables and FormattedSearch.

This feature is useful for FormattedSearch in many areas. Examples:

  • Embed a search result in a TWiki table cell: Use separator=" "
  • Build DynamicFormOptionDefinitions: Use separator=", "
  • Build a select list from a list of tokens: Use separator="</option> <option>"

Background: SvenDowideit supplied a patch for a new nolinefeed parameter in DynamicFormOptionDefinitions. Although useful, the separator parameter is more flexible and makes it consistent with other variables like %TOPICLIST{}% and %WEBLIST{}%.

-- PeterThoeny - 27 Sep 2003

Discussions

Sounds like a good idea.

-- JohnTalintyre - 27 Sep 2003

I am currently working on the implementation of this feature, together with MultipleSearchesInSameTopic

-- PeterThoeny - 28 Sep 2003

This is now in TWikiAlphaRelease and at TWiki.org.

Please help in testing it out. FormattedSearchFormTesting is one way of doing it.

-- PeterThoeny - 28 Sep 2003

Topic revision: r10 - 2006-01-03 - 08:25:21 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.