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 :)

1 Answer 1


Sure, just remove the section parameter altogether.

{% set entries = craft.entries.search(query).order('score') %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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