I have two different sections that share the same category group that I want to display both on browser at the same time only if the category is the same. Doing that in Craft CMS is possible?
Thank you.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI have two different sections that share the same category group that I want to display both on browser at the same time only if the category is the same. Doing that in Craft CMS is possible?
Thank you.
Yes. It is possible, you need to specify the craft category and set the group parameter on it and fetch the categories with .all()
.
{% set categories = myCategoryQuery.all() %}