00646: Search should use the page it is called from to return the result if it contains (:searchresults:)

Summary: Search should use the page it is called from to return the result if it contains (:searchresults:)
Created: 2006-01-21 20:14
Status: Closed
Category: Feature
From: Simon
Assigned:
Priority: 5
Version: 2.0beta20
OS: all

Description: If a customised search page is used, say TTC/Search the the

(:searchbox:)

should return the results to the

(:searchresults:)

if there is one on the same page.

If not the search should be returned in the first of the following that contains a (:searchresults:)

  • $Group.Search
  • $DefaultGroup.Search
  • $Site.Search

It appears this can be achieved by the following steps

  • insert $PageSearchForm = '$DefaultGroup.Search'; at the end of your config.php file
  • change $SiteGroup/Search to $DefaultGroup/Search (twice) in the $DefaultGroup pmwiki.tmpl (change $DefaultGroup to suit)
  • create the page DefaultGroup.Search, use the $SiteGroup.Search as a model