- Messaggi: 14
- Ringraziamenti ricevuti 0
Query type selection - Module Search
- freddy
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
9 Anni 9 Mesi fa #2161
da freddy
Query type selection - Module Search è stato creato da freddy
How to change the default button in Query type selection under the search text box?
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
9 Anni 9 Mesi fa #2163
da andrea_4g
Risposta da andrea_4g al topic Query type selection - Module Search
The button has 3 CSS classes:
btn btn-primary btn-medium
as to make it similar to other Joomla's buttons.
Also, it's contained with the parent element:
So, if your add a statement like:
you'll be able to style the button as you like.
btn btn-primary btn-medium
as to make it similar to other Joomla's buttons.
Also, it's contained with the parent element:
Code:
<div class="cp-auto-submit">
<button .../>
</div>
Code:
div.cp-auto-submit button.btn{
some-property: some-value;
}
Si prega Accesso o Crea un account a partecipare alla conversazione.
- freddy
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
- Messaggi: 14
- Ringraziamenti ricevuti 0
9 Anni 9 Mesi fa #2164
da freddy
Risposta da freddy al topic Query type selection - Module Search
Sorry for my english. It's difficult for me to explain my question.
With Query type, i have 3 radio buttons to select mode search.
I would like change the actually selected radio button n°3 to the radio button n°1 on all pages.
With Query type, i have 3 radio buttons to select mode search.
I would like change the actually selected radio button n°3 to the radio button n°1 on all pages.
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
9 Anni 9 Mesi fa #2166
da andrea_4g
Risposta da andrea_4g al topic Query type selection - Module Search
Two solutions:
== quick, but will be overwritten on Custom Properties update (not recommended) ==
Edit file modules/mod_cpsearch/mod_cpsearch.php and change line 82 from:
to:
== by means of a template override, thus upgrade safe (recommended) ==
- create the directory <your-template>/html/mod_cpsearch
- copy file modules/mod_cpsearch/tmpl/default_querytype.php into directory <your-template>/html/mod_cpsearch
- edit file <your-template>/html/mod_cpsearch/default_querytype.php
- add the following lines so that lines 13-17 looks like:
Done
== quick, but will be overwritten on Custom Properties update (not recommended) ==
Edit file modules/mod_cpsearch/mod_cpsearch.php and change line 82 from:
Code:
$searchphrase = $app->input->get('searchphrase', 'exact'); //any, all, exact
Code:
$searchphrase = $app->input->get('searchphrase', 'all'); //any, all, exact
== by means of a template override, thus upgrade safe (recommended) ==
- create the directory <your-template>/html/mod_cpsearch
- copy file modules/mod_cpsearch/tmpl/default_querytype.php into directory <your-template>/html/mod_cpsearch
- edit file <your-template>/html/mod_cpsearch/default_querytype.php
- add the following lines so that lines 13-17 looks like:
Code:
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$searchphrase = $app->input->get('searchphrase', 'all'); //any, all, exact
?>
Done
I seguenti utenti hanno detto grazie : freddy
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.161 secondi