We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
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 - 03 Jan 2006 - 08:25:21 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback