Modifying Search block default options
Posted
#436
(In Topic #142)
I have not managed to find out how to define which search content options are selected as default?
Posted
There is a way to change the top_search block's defaults, but it's too fiddly to explain reasonably.
I think we should make this better, so I've added it to the tracker:
0002378: Allow configuration of search defaults, outside block options - Composr CMS feature tracker
In the past we were very frugal about adding new config options, but that's no longer an issue with Composr as we've improved our configuration subsystem.
For now though it's easiest to just manually alter the PHP code.
If you look in the sources/hooks/modules/search/*.php files you'll find some have:
Code
$info['default'] = false;
Code
$info['default'] = true;
Then save under sources_custom/hooks/modules/search/
Posted
I tried immediately, and it works
I guess the logic is that php files in sources_custom have priority over files in sources, right?
Posted
2 guests and 0 members have recently viewed this.
