Modifying order of fields in CP Search module

  • sjkelley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #1675 by 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!

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #1676 by andrea_4g
Replied by andrea_4g on 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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds