SearchBox

Testing search box with value parameter
PM wrote:

(...)

If you want to adjust the searchbox markup, you can simply change it to read

(:searchbox group={$Group}:)

and searches will default to the current group.


(:searchbox group={$Group} value='{$Group}':)
(:searchbox group=-{$Group} value='':)

while searching across all groups is working:

(:searchbox value='':)
(:searchbox Test:)
(:searchresults fmt=#titlesummary order=$Name count=30:)
(:pagelist request=1 req=1 fmt=#titlesummary order=$Name count=30:)

Could the problem arise from the presence of a space after the command?

Indeed. The regex for the markup will accept just (:searchbox:) and nothing else, at least as listed by http://pmwiki.org?action=diag. Joachim Durchholz July 01, 2005, at 08:09 AM

Take a look at SearchBoxArgs. When I add the (;searchresults:) directive I get the behavior that the poster described. Granted, there is an awful lot going on in that page. But maybe someone will cut and paste a snipet from that page to test on another. Pico May 31, 2006, at 08:44 AM Ok, answered by PM in this post: Add value= to each of the (:searchbox:) entries. (The value parameter sets the default value for the searchbox). Notice that the last search box does not have that value parameter and, thus, it adopts the values added to either of the other boxes.

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.03 00.03 MarkupToHTML end
 7: 00.03 00.03 MarkupToHTML begin
 8: 00.03 00.03 MarkupToHTML end
 9: 00.03 00.03 MarkupToHTML begin
10: 00.03 00.03 MarkupToHTML end
11: 00.03 00.03 MarkupToHTML begin
12: 00.04 00.03 MarkupToHTML end
13: 00.04 00.03 MarkupToHTML begin
14: 00.04 00.03 MarkupToHTML end
15: 00.05 00.04 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.05 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.05 00.05 MarkupToHTML end
18: 00.06 00.05 MarkupToHTML begin
19: 00.07 00.06 MarkupToHTML end
20: 00.07 00.06 MarkupToHTML begin
21: 00.07 00.07 MarkupToHTML end
22: 00.08 00.07 now
Peak memory: 3,116,704 bytes