[pmwiki-users] search not working

Hans design at softflow.co.uk
Sat Dec 31 12:52:56 CST 2005


Saturday, December 31, 2005, 6:22:44 PM, Neil wrote:
> The current (pmwiki-2.0.12) behavior is that I am sent to a page that
> has the same name as the page where I started the search but not the
> same content - which I find profoundly disturbing.

you could redefine $SearchBoxFmt in config.php,
the following will always go to Site.Search :

$SearchBoxFmt =
  "<form action='\$ScriptUrl/$[Site/Search]' >
  <input type='hidden' name='pagename' value='$[Site/Search]' />
  <input class='inputbox wikisearchbox' type='text' name='q' value=' $[Search] ' size='16'
  onfocus=\"if(this.value=' $[Search] ') {this.value=''}\"
  onblur=\"if(this.value=='') {this.value=' $[Search] '}\" />
  <input name='submit' type='submit' class='inputbutton wikisearchbutton' value='$[Go]' />
  </form>";

        
Happy New Year to you all!

~Hans                           






More information about the pmwiki-users mailing list