[pmwiki-users] wikiforms - how to get search to use editeform

John Rankin john.rankin at affinity.co.nz
Tue Jul 15 17:45:06 CDT 2008

>Date: Tue, 15 Jul 2008 14:05:33 +0000 (UTC)
>how can i tell the search result (in this example, Main.00001), when clicked 
>to open Main.00001?action=editeform
>i'd prefer users not to see the viewform style when a search has been done. 
>would the ?action=editeform need to be specified in pmwiki.php? this search is 
>site specific so i don't mind it being changed as a default.
>thanks for any suggestions!
There are 2 options:

1. use a (:wikilist page=form ... :) directive, which appends an 
   editeform action to the pagename link in the listed pages

2. use a (:pagelist:) directive with a custom format; see
   you'll need to make sure that the pagelist directive
   only returns pages of the form Group.ddddd (5 digits)
   or include logic in the custom format that uses a
   regular edit action for non-numeric pages in the list

Option 1 would be the simpler, if it meets the requirement.
Some users have done quite sophisticated things with per-field 
search criteria. 

Hope this helps
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
john.rankin at affinity.co.nz

More information about the pmwiki-users mailing list