2

In the product overviews and search results on my website are also products listed which are related to passive categories. Is there a way to get only entries which are related to active categories? The product with this category status should not be displayed at the website

The product with this category status should not be displayed at the website

4

You would first query for all active categories and then get the Product entries that are related to these categories.

{% set allCategories = craft.categories.group('Categorie') %}
{% set entriesWithActiveCategories = craft.entries.section('Products').relatedTo(allCategories) %}

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.