Tags:
create new tag
view all tags

SID-00489: Shorten Formfield in Formatted Search does not work

Status: Answered Answered TWiki version: 4.3.1 Perl version:
Category: CategorySearch Server OS: Last update: 16 years ago

Hello,

I just recognized that the formated search parameter $formfield(name, 30, ...) to shorten formfield data seems not to work. For example, I tried this search:

%SEARCH{"name ~ '*TestTopic*'"  type="query" nonoise="on" format="| $topic | $formfield(Name, 5, ...) | "}%

But the formfield data is not shortened, it is shown as normal. I tried to change the attribute name and the search showed a strange behaviour:

%SEARCH{"name ~ '*LaLaTopic*'"  type="query" nonoise="on" format="| $topic | $formfield(Textfield, 5, ...) | "}%

--> does not work

%SEARCH{"name ~ '*LaLaTopic*'"  type="query" nonoise="on" format="| $topic | $formfield(textareafield, 5, ...) | "}%

--> does not work

%SEARCH{"name ~ '*LaLaTopic*'"  type="query" nonoise="on" format="| $topic | $formfield(a place to write things, 5, ...) | "}%

--> works

See also an example here: LaLaTopic1

I also tried it with a regex search, but it didn't work as well. Why does it only work when there are spaces in the attribute name!?

-- LuisEnrique - 2009-08-18

Discussion and Answer

Confirmed as TWikibug:Item6305 (introduced by TWikibug:Item6082)

-- PeterThoeny - 2009-08-18

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Shorten Formfield in Formatted Search does not work
SupportCategory CategorySearch
TWiki version 4.3.1
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2009-08-18 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.