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.02 00.01 config end
 2: 00.23 00.21 MarkupToHTML begin
 3: 00.23 00.21 MarkupToHTML begin
 4: 00.23 00.22 MarkupToHTML end
 5: 00.23 00.22 MarkupToHTML begin
 6: 00.23 00.22 MarkupToHTML end
 7: 00.23 00.22 MarkupToHTML begin
 8: 00.23 00.22 MarkupToHTML end
 9: 00.23 00.22 MarkupToHTML begin
10: 00.24 00.22 MarkupToHTML end
11: 00.24 00.22 MarkupToHTML begin
12: 00.24 00.22 MarkupToHTML end
13: 00.24 00.22 MarkupToHTML begin
14: 00.24 00.22 MarkupToHTML end
15: 00.25 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.26 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.26 00.24 MarkupToHTML end
18: 00.26 00.24 MarkupToHTML begin
19: 00.28 00.25 MarkupToHTML end
20: 00.28 00.25 MarkupToHTML begin
21: 00.28 00.26 MarkupToHTML end
22: 00.28 00.26 now
Peak memory: 3,696,704 bytes