- Messaggi: 3
- Ringraziamenti ricevuti 0
Change '-' blank option
- oliverb
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
11 Anni 10 Mesi fa #1194
da oliverb
Change '-' blank option è stato creato da oliverb
Hi,
I would like to change the blank '-' option in a drop down box to read 'Select City', 'Select Countries'. I know that you can change this setting in the module parameters but that would be for all the drop down boxes. I need it to read 'select city' and 'select countries'.
Please can someone tell me how this is possible??
Thanks
I would like to change the blank '-' option in a drop down box to read 'Select City', 'Select Countries'. I know that you can change this setting in the module parameters but that would be for all the drop down boxes. I need it to read 'select city' and 'select countries'.
Please can someone tell me how this is possible??
Thanks
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
11 Anni 10 Mesi fa #1197
da andrea_4g
Risposta da andrea_4g al topic Change '-' blank option
You should:
a) set module parameter 'Select Label Position' to 'Inside': that will change the empty option from ' - ' to the name of the filed (e.g. City)
b) make a small modification to modules/mod_cpsearch/tmpl/default.php, changing line 88 from:
to:
a) set module parameter 'Select Label Position' to 'Inside': that will change the empty option from ' - ' to the name of the filed (e.g. City)
b) make a small modification to modules/mod_cpsearch/tmpl/default.php, changing line 88 from:
Code:
echo "<option value=\"\" class=\"empty$moduleclass_sfx\">" . htmlspecialchars($field->label) . "</option>\n";
Code:
echo "<option value=\"\" class=\"empty$moduleclass_sfx\"> - Select " . htmlspecialchars($field->label) . " - </option>\n";
Si prega Accesso o Crea un account a partecipare alla conversazione.
- oliverb
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
- Messaggi: 3
- Ringraziamenti ricevuti 0
11 Anni 10 Mesi fa #1198
da oliverb
Risposta da oliverb al topic Change '-' blank option
Thank you for your quick reply!
Is there any way to have the label in both positions?
Is there any way to have the label in both positions?
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.121 secondi