- Posts: 11
- Thank you received: 0
Changing default radio selected in cp_search field
- mparada
- Topic Author
- Offline
- New Member
Less
More
12 years 6 months ago #709
by mparada
Changing default radio selected in cp_search field was created by 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
Any Ideas ?
Thanks
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 6 months ago #710
by andrea_4g
Replied by andrea_4g on topic Re: Changing default radio selected in cp_search field
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
to
or
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');
Code:
$checked = JRequest::getCmd('searchphrase', 'all');
Code:
$checked = JRequest::getCmd('searchphrase', 'any');
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds