[pmwiki-users] Redirect search results to SearchResults page.

Waylan Limberg waylan at gmail.com
Fri Oct 21 14:44:34 CDT 2005


I've been trying to get my search to work the way I want, and for the
most part I have. One thing I don't really care for is that the search
results are displayed with the URL of the page they originated from.
Seeing every page has a search box, I don't like this. IMO all results
should come under a single URL, so when I run a search, PmWiki
redirects to Site.Search (or perhaps $Group.Search - if search is
restricted to said group) and displays the results there.

I considered changing the format of the search form so that it
submitted to Site.Search, instead of the current page, but wasn't sure
exactly how to do this. But then I wondered about those groups that
are set to only search on that group (via groupname.php). How would
Site.Search now which group its searching in? I suppose I could create
a $Group.Search page and have the search form for that group submit
there. That would help clear up that the results are only for that
specific group. (I was just using (:if group GROUPNAME:) to display a
message for the one group I've restricted search for.)

Any suggestions for the best way of going about all this?

As an aside. I also want to not search that one group when in any
other group, but I can't seem to override the restriction in
config.php from groupname.php
--
----
Waylan Limberg
waylan at gmail.com




More information about the pmwiki-users mailing list