--- On Mon, 7/7/08, Janssens Karen <[EMAIL PROTECTED]> wrote:

> From: Janssens Karen <[EMAIL PROTECTED]>
> Subject: [Moin-user] default search
> To: [email protected]
> Date: Monday, July 7, 2008, 6:04 AM
> Hi
> 
> By default hitting enter after entering a keyword in the
> searchbox leads 
> to a title search. for my wiki, I would like to make it do
> a full-text 
> search instead. Is it possible to change this default
> search behaviour, 
> and, if yes, where can I adjust it?
> 
> Thanks in advance!
> 
> Karen
> 

There is no configuration option to switch the position of the Titles and Text 
buttons on the search form.

The easy way is to enter a value and then remember to hit tab twice, then enter.

To do it the hard way, the positions of the buttons are defined in the 
"searchform" method in /theme/__init__.py.  For release 1.7.0 look for the 
following near line 760:

<input id="titlesearch" name="titlesearch" type="submit"
    value="%(search_title_label)s" alt="Search Titles">
<input id="fullsearch" name="fullsearch" type="submit"
    value="%(search_full_label)s" alt="Search Full Text">

To change the position of the buttons, cut and paste the fullsearch input tag 
to be before the titlesearch tag.  If doing that has no effect and you are 
using a custom theme, then your theme is overriding the searchform method and a 
similar change must be made within the theme.

Roger Haase 




      

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to