#dynamic pages patterns

1 messages · Page 1 of 1 (latest)

green hedge
#

I think I saw this discussion before but can't find it. Using v3 and Nextjs I saw the website template has dynamic pages, but the posts page is hard coded. Doesn't this mean the editor can never make changes to the layout of these pages? Can I just create a regular page on the pages collection and give it a specific path so the catchall works? Is it possible to give the [slug]/page.tsx a special structure that it can have multiple nested catchall pages?

Or is making it that dynamic not feasible?

royal turtleBOT
green hedge
#

So I figured out i can do it dynamically to a point. I just have to hardcode the functionality of a route first, like /team, and then render blocks if there is any. And for /team/[slug] I set up generatestaticparams and have a single block that isn't editable, only the fields in the teamMembers collection. I probably could setup nestedDocs, but not necessary for my project.

royal turtleBOT