r10 - 03 Jan 2006 - 08:25:21 - PeterThoenyYou are here: TWiki >  Codev Web > DynamicFormOptionDefinitions > FormattedSearchWithSeparatorParameter
Tags:
, create new tag

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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r10 < r9 < r8 < r7 < r6 | More topic actions
 
Powered by TWiki
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 SourceForge.net Logo