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.