[pmwiki-users] Format Search Results

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 27 10:41:15 CDT 2007


On Tue, Mar 27, 2007 at 11:26:00AM -0400, The Editor wrote:
> I suppose I should know this but can't find it in the doc's.
> 
> How does one control the formatting of one's search results so you do
> not see the
> 
> "Results of search for : " and "1 pages found out of 2 pages searched."

The "Results of search for"... and "1 pages found" strings are currently
part of the (:searchresults:) directive.  To avoid them one needs to
use (:pagelist:) instead to display the output.

For 2.2.0 I've been seriously considering changing this so that
the (:searchresults:) directive simply defaults to having fmt=#search,
and then the strings become part of the #search pagelist template
instead of being hardwired into the directive itself.

I don't know how many site customizations this might break... but then,
the whole purpose of having a "beta" series is to make improvements
like these.  :-)

Pm



More information about the pmwiki-users mailing list