Hot answers tagged

2

Currently, it can't be done out of the box, since it's currently not possible to search the related entries like this. However, you can extend GraphQL to pull this off. Ideally, it would be possible to add arguments to existing queries, but that won't be possible until Craft 4.0, so you'll have to add an entirely new query. So, add a custom query and ...


2

This answer is preliminary – see my comment asking for clarification. It really depends on what you want. Do you want the product page … … not to be available in Google's index any more? … not to be discoverable on the website (e.g. through a product search page)? … not to be accessible by direct URL? If the answer is yes to all three, simply delete the ...


1

I don't think there is an option in current craft to get the relations query based on the order. But you can do that, using where statements like this : {% set offers_for_institute = craft.entries().section('offers') .innerJoin('relations', 'elements.id = relations.sourceId') .andwhere('relations.sortOrder = 1') .andWhere("relations.targetId = #{entry....


Only top voted, non community-wiki answers of a minimum length are eligible