[Pmwiki-users] Proposed (minor) change to search.php

John Rankin john.rankin
Wed Sep 10 16:51:39 CDT 2003


This is a request for advice.

For one of our sites, the client wants to add a 'Publish' button to the 
Search Results page. Each page in the results list has a check box beside it.

Check selected boxes, press Publish and the reader gets the page collection
published as a single HTML page, formatted using the print.css.

Most of this is done as a local customisation and extends print-publish.php
in the Cookbook.

However, I have made a change to $SearchFor in search.php, so that it reads:
 
  Searching for <em>$Needle</em> in <em>$Haystack</em>.

$Needle is the joined and formatted $incl and $excl arrays (or 'all').

$Haystack is the group name (or 'all').

Goal: have a version that will work with pmwiki's search.php script.

I see 4 options:
1 (preferred and recommended). Change pmwiki's official search.php
so that it presents "Searching for needle in haystack."

2. Use pmwiki's current "Searching for needle." and put more effort
into the publish script so that it unravels the text of "needle"
(ie repeat what search.php does in publishsearch).

3 (current approach). Maintain a local version of search.php and update 
it whenever the official version changes.

4. Something blindingly obvious that I haven't thought of...

Thanks in advance for suggestions.

Patrick, I can of course send you the local search.php script if
required.
-- 
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
021 RANKIN
john.rankin at affinity.co.nz
www.affinity.co.nz





More information about the pmwiki-users mailing list