Closed jbmoelker closed 8 months ago
Note: Astro supports rest parameters which can be used for nested page routes.
What should we use for nesting in DatoCMS and what are the benefits / disadvantages of each option?
Decided with @decrek: we're going for add a parent page field to the page model because
New alternatives, which may be simpler:
slug
field so editors can define the nested route to a page (grandparent-slug/parent-slug/page-slug
). We could then also query all pages with parts of this slug (grandparent-slug/parent-slug
, grandparent-slug
).
User story
As a website visitor or marketer, I want meaningful urls with nesting and breadcrumbs on a page, so that I understand the website hierarchy / where I am on the site.
Checklist
/main-page/sub-page/sub-sub-page
.