- Messaggi: 6
- Ringraziamenti ricevuti 0
Modifying order of fields in CP Search module
- sjkelley
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
10 Anni 9 Mesi fa #1675
da sjkelley
Modifying order of fields in CP Search module è stato creato da sjkelley
I just purchased CP for Joomla 2.5 and it's working great!
I it set up and working fine on a real estate site I've developed ( zipzapwebdesign.com/sites/mooers2/search-properties.html ).
I would like to make one modification, though:
I'd like the text search field to be at the top of the search module (i.e. before the searchable custom properties I've set up). By default it's at the bottom.
I know I need to modify modules/mod_cpsearch/tmpl/default.php but haven't been able to do it properly.
Could you please let me know exactly how to modify that file... or attach a properly modified version?
Thanks!
I it set up and working fine on a real estate site I've developed ( zipzapwebdesign.com/sites/mooers2/search-properties.html ).
I would like to make one modification, though:
I'd like the text search field to be at the top of the search module (i.e. before the searchable custom properties I've set up). By default it's at the bottom.
I know I need to modify modules/mod_cpsearch/tmpl/default.php but haven't been able to do it properly.
Could you please let me know exactly how to modify that file... or attach a properly modified version?
Thanks!
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
10 Anni 9 Mesi fa #1676
da andrea_4g
Risposta da andrea_4g al topic Modifying order of fields in CP Search module
Since mod_cpsearch supports template overriding, I'd recommend you to use this capability instead of modifying directly the module.
1) create directory 'mod_cpsearch' under 'templates/yourtemplatename/html'
2) copy 'modules/mod_cpsearch/tmpl/default.php' into 'templates/yourtemplatename/html/mod_cpsearch'
3) modify 'templates/yourtemplatename/html/mod_cpsearch/default.php'
Note: we are sending you the modified 'default.php', with text search on top. Check your inbox in few minutes.
1) create directory 'mod_cpsearch' under 'templates/yourtemplatename/html'
2) copy 'modules/mod_cpsearch/tmpl/default.php' into 'templates/yourtemplatename/html/mod_cpsearch'
3) modify 'templates/yourtemplatename/html/mod_cpsearch/default.php'
Note: we are sending you the modified 'default.php', with text search on top. Check your inbox in few minutes.
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.157 secondi