[Home]WikiPatches/SearchNote

UseModWiki | WikiPatches | RecentChanges | Preferences

This Patch adds a HTML notice beside the search field
  1. Define a new global variable: use vars qw($SearchNote?);
  2. Configuration of this variable: $SearchNote? = "<SMALL>You can search with <A HREF='?RegularExpressions?'>RegularExpressions?</A>, i.e. 'germany.*burg'!</SMALL>"; # HTML notice beside the search field
  3. Locate the sub GetSearchForm
  4. Addition the the $result line: $result = T('Search:') . ' ' . $q->textfield(-name=>'search', -size=>20) . ' ' . $SearchNote?
  5. Save - done!

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited July 23, 2009 11:36 pm by JuanmaMP (diff)
Search: