Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

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='':)

while searching across all groups is working:

(:searchbox value='':)
(:searchbox Test:)
(:searchresults:)

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.

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.06 00.05 MarkupToHTML begin
 3: 00.06 00.06 MarkupToHTML begin
 4: 00.07 00.06 MarkupToHTML end
 5: 00.07 00.06 MarkupToHTML begin
 6: 00.07 00.06 MarkupToHTML end
 7: 00.07 00.06 MarkupToHTML begin
 8: 00.07 00.07 MarkupToHTML end
 9: 00.07 00.07 MarkupToHTML begin
10: 00.07 00.07 MarkupToHTML end
11: 00.10 00.09 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.11 00.10 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.12 00.11 MarkupToHTML end
14: 00.13 00.12 MarkupToHTML begin
15: 00.16 00.15 MarkupToHTML end
16: 00.16 00.15 MarkupToHTML begin
17: 00.18 00.17 MarkupToHTML end
18: 00.18 00.17 now