Changing default radio selected in cp_search field

  • mparada
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
12 Anni 1 Settimana fa #709 da mparada
Hi, I ´m having several troubles with search field in cp_search, because "EXACT FRASE" is the default radio selected, and is the least inclusive option (least than all words OR any words).

Any Ideas ?

Thanks

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
12 Anni 1 Settimana fa #710 da andrea_4g
We chose 'exact' as default because it's the fastest and poses less burdern on DB (which is a concern for many users).
To choose a different default, you can make a very small modification in file :
modules/mod_cpsearch/mod_cpsearch.php at line 442:
From
Code:
$checked = JRequest::getCmd('searchphrase', 'exact');
to
Code:
$checked = JRequest::getCmd('searchphrase', 'all');
or
Code:
$checked = JRequest::getCmd('searchphrase', 'any');

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.147 secondi