Getting related contentType via a singleType

System Information
  • Strapi Version: v3.6.8
  • Operating System: MacOS Monterey
  • Database: sqlite
  • Node Version: v14.18.1
  • NPM Version: v6.14.15
  • Yarn Version: -

I’ve got a question whether it is possible (and if so, how) to configure a singleType to return specific items from a collectionType.

More concrete, I’ve got a collectionType page with a relation to a collectionType category (one to many, so each page belongs to one category and a category has many pages). On the singleType I would like to add a list of pages that belong to a category.

The way I tried to add it is by adding a relation field from the singleType to the collectionType, and then specifically the category collectionType.

The category collectionType does show up on the page and I can configure it to the category I want, but the pages that are related to the category won’t show up. I feel like I am overlooking something here.

I’ve spend some time searching for an answer but could not find any useful information so far (at least to my knowledge). So any help is appreciated!

1 Like