1

By default, in the Search module of Joomla, "all words" is selected by default. I want "any words" to be selected by default.

Does anyone know where I have to make the changes in files and the location of files?

I have searched the "com_search" folder in both the component and the module folders, but was not able to find anything useful.

  • This page seems to be abandoned. Did one of the answers resolve your question? Please progress this page to an accepted answer. – mickmackusa Feb 3 at 0:16
1

In the view.html.php file located here: components/com_search/views/search/view.html.php

Navigate to line 102 where you will find COM_SEARCH_ALL_WORDS. Put that whole line below the COM_SEARCH_ANY_WORDS line.

This will effectively change the default search option to be "any words".

enter image description here

0

This option is not available in Search component configuration but is available per menu item. Create Search Form or Search Results menu item and set Search For option in Options tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.