parent/child content modelling #1888
-
hi all. i've got a content modelling question - thanks in advance! i'm building a site which is a knowledge-base for our design system. i'm trying to create a type of page called a
the url for the foundations page will redirect to the first tab, i.e. my question is, how to model this. i've tried creating a i can do it the other way round - a the third thing i tried was to have a are there any better ways of doing this? any thoughts gratefully received (i did see this nested docs plugin which looks interesting, but i don't think fits my use case because i only want to allow one level of parent-child relation, and because the parent and child wouldn't fit into the same collection) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Hives, I would recommend using / reading more on the nested docs plugin. With this plugin, you would create your content structure using just a Pages collection. You would create a Foundation page, add no content. Create a Typography page, and select Foundation as the Parent Page. You can then create pages for Introduction, Patterns etc and assign their Parent Page to Typography. This plugin will satisfy many of the issues you listed above:
I think this would be suitable for your use case but if I have missed something or you see a reason this wouldn't work for you - let me know and we can continue to discuss. |
Beta Was this translation helpful? Give feedback.
-
thanks! will take a look tomorrow and see how i get on |
Beta Was this translation helpful? Give feedback.
Hi @Hives,
I would recommend using / reading more on the nested docs plugin.
With this plugin, you would create your content structure using just a Pages collection. You would create a Foundation page, add no content. Create a Typography page, and select Foundation as the Parent Page. You can then create pages for Introduction, Patterns etc and assign their Parent Page to Typography.
This plugin will satisfy many of the issues you listed above:
Foundation > Typography …