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


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

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2006-01-03 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.