[pmwiki-users] form to search page names - one solution
aless
alessors at gmail.com
Tue Aug 5 12:43:38 CDT 2008
> You could leave it on the same page and just surround your (:pagelist ...:)
> with (:if !equal {$?search_term} "":)(:pagelist ...:)(:endif:). That would
> enable to you to immediately update your search term if you came up with the
> wrong list. (You would need to get rid of the action=... in the input form
> as well as adding a (:input hidden name=n value={$FullName}:) or the
> equivalent...)
Thank you, Peter. Much better solution indeed. Here's the form, in case
someone else is interested:
(!) Recipe HttpVariables has to be installed for the form to work
===cut===
(:input form method=get:)
(:input hidden name=n value={$FullName}:)
(:input text name=search_term:)
(:input end:)
(:if ! equal {$?search_term} "":)
(:pagelist name=*{$?search_term}*:)
(:ifend:)
===cut===
alessandro
More information about the pmwiki-users
mailing list