Contentful logo

Contentful Community

Create page tree including independent content models like news or blog posts

We have have a page content type containing a multi reference field of child pages. That’s how we currently built our page tree. Each page takes a single reference of some layout type. Based on its type f.e. if its LayoutBlog we get all blog entries (independent content model) to append to the child page: /child/blog-entry.

Within different layout types there is the possibility to add a so called blog teaser though. If it’s present we fetch the last few entries. Obviously the teaser cards contain CTAs hence we need the entry’s relative url to redirect to the respective blog entry (/child/blog-entry) - since the content model isn’t referenced anywhere, we currently can’t get it querying the entry itself.

What’s the best practice to create some kind of structure here, without having to fire tons of requests?