[pmwiki-users] Conditional? sidebar for search in fields in a wiki farm

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 14 15:29:46 CDT 2005


On Thu, Jul 14, 2005 at 04:09:36PM +0100, K.A.Bouton wrote:
> The search seem to work great - that is they come up with search results
> from only the field being searched - as I intended.
> 
> However they come up in a Site/Search page with no sidebar (my Site has no
> sidebar)
> 
> How do I either
> 1) get it to come up with the relevant field sidebar in that page? I looked
> at conditional sidebars butr couldn't figure it out as its based on Group
> and all my Groups are Main but are in a different field
> 
> 2) get (:searchbox:) to come up in a fieldX/Main/Search page with the fieldX
> sidebar?

I suspect that the answer is that we need to restore ?action=search
from PmWiki 0.6 (or was it 0.5?), so that search results can display
within the context of the current page instead of transferring to
a different page.

In this context, Site.Search then becomes a template for displaying
the results of ?action=search, similar to the way that Site.EditForm
is now a template for ?action=edit.  So, the skin, menus, sidebar, etc.
would remain the same as they were when the search was initiated,
rather than changing substantially as they do now.

Anyone else like this approach?  It's very similar to what is
being done by part of Cookbook.SearchExtensions, except that
the output results would be formatted according to a wiki page
template instead of a PHP global variable.

Pm




More information about the pmwiki-users mailing list