[Pmwiki-users] searchresult-page
Patrick R. Michaud
pmichaud
Tue Oct 26 14:27:04 CDT 2004
On Tue, Oct 26, 2004 at 09:59:04PM +0200, Knut Alboldt wrote:
> >List= and fmt= (and all of the other listing options) can go in the query
> >string, as hidden elements in (:searchbox:)
>
> what are the var-names ? "list" and "fmt" ? Is it important to write "List"
> instead of "list" ?
No, "list" is correct (sorry about that). And yes, the var names are
"list" and "fmt". For example, if you wanted to create a (:searchboxgroup:)
directive that would search for pages in the current group using fmt=simple
and list=normal, you could do:
Markup('box','>links','/\\(:searchboxgroup:\\)/',
FmtPageName("<form class='wikisearch' action='\$ScriptUrl' method='get'>
<input type='hidden' name='pagename' value='$[Main/SearchWiki]' />
<input type='hidden' name='group' value='$Group' />
<input type='hidden' name='list' value='normal' />
<input type='hidden' name='fmt' value='simple' />
<input class='wikisearchbox' type='text' name='q' value='' size='40' />
<input class='wikisearchbutton' type='submit' value='$[Search]' />
</form>",
$pagename));
> >(:searchresults:). I suspect the common place to put them is in
> >the (:searchresults:) tag on the SearchWiki page.
>
> That's what I wanted
Yeah, if you wanted searchresult output on SearchWiki to assume list=normal
for all searches that don't specify otherwise, you would change
(:searchresults:) to (:searchresults list=normal:).
Pm
More information about the pmwiki-users
mailing list