[pmwiki-users] Custom searchbox
Pico
pmwiki at ben-amotz.com
Wed Oct 18 12:49:56 CDT 2006
Patrick R. Michaud <pmichaud <at> pobox.com> writes:
>
> On Wed, Oct 18, 2006 at 05:22:04PM +0000, Pico wrote:
> > [...]A question in PmWiki/Questions is looking for a
> > use-friendly way to limit searches to the text of PageName,
> > without requiring visitors to know about searchbox parameters
> > and wildcards.
> >
> > Background:
> >
> > For example, assume that you want to search for pages whose
> > *name* contains the string "Foo" .
> > [...]
>
> Why not just...?
>
> (:searchbox name=*Foo* :)
Because we don't want to hardcode the string "Foo" into the searchbox. If we
were using the searchbox directive with the name= parameter, we would want that
parameter to use value of whatever-string-is-entered-into-the-searchbox (lets
call it {$Value} for the sake of this discussion), like this:
(:searchbox name=*{$Value}* :)
Pico
More information about the pmwiki-users
mailing list