1

Right know for my search engine i am using:

{% set entries = craft.entries.section('pages, references, trainingsList, maps, trendsAndInnovation, currentTopics).search(query).order('score') %}

So now if i would add another section i have to add it to the code as well of course. Is there a way to directly search for everything on the page?

Thanks for the support :)

4

Sure, just remove the section parameter altogether.

{% set entries = craft.entries.search(query).order('score') %}
| improve this answer | |

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.