search for <term> gave approximately 0 results:

Post

Posted
Rating:
#1171 (In Topic #253)
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’

setting default search options

Hi,
In the default menu bar ( ie same place as the menu_management bar)  there is a search facility, but always returns 0 results.

once the Zero results shows, then search results settings displays, and you include Pages, then the system correctly returns the search term.

Where can I set the default search options to include "Pages" or other options

Thanks
Chris

Last edit: by Chris Graham

Online now: No Back to the top

Post

Posted
Rating:
#1172
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

Currently to change this you need to manually edit sources/hooks/modules/search/comcode_pages.php to change $info['default'] = false; to $info['default'] = true;, or you need to do some template editing to change the parameters passed to the search block (a bit harder).

I think we've added options for the next major version for it.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top