00805: Search: allow button text to be specified

Summary: Search: allow button text to be specified
Created: 2006-09-18 16:45
Status: Closed - exists
Category: Feature
From: Simon
Assigned:
Priority: 4
Version: 2.1.26
OS: n/a

Description: In the PmWiki template the Search Button default text is "Go" (defined as <input type='submit' class='inputbutton searchbutton' value='$[Go]' />. See the top right of this page for an example of this.

A variant of the (:pagelist:) markup is (:searchbox:) and generates a Button with the text value "Search".

(:searchbox value='' size=20 label="Search this awesome wiki":)
  • The change request is to add a parameter to the searchbox markup to allow the text on the button to be specified

It is implemented with the label= parameter. --Petko July 16, 2009, at 10:06 PM

See also PageLists

The html generated by the searchbox is:

 <form  class='wikisearch' action='http://example.com/pmwiki/pmwiki.php/GroupName/PageName' method='get'>
    <input type='text' name='q' value='' class='inputbox searchbox' size='24' />
    <input type='submit' class='inputbutton searchbutton' value='Search' />
    <input type='hidden' name='#' value='Array' />
    <input type='hidden' name='action' value='search' />
 </form>