Working example of nested pages. #10748
Replies: 1 comment 2 replies
-
Hey @danielkoller I do agree, perhaps the website template should be using The difference in my template and the existing "website" template for nested pages is as follows: Instead of the following files to cover the pages collection; I utilize one single
When rendering the page (inside of that
You can resolve the pathname with this
It should be noted that I do not use the slug "index" or "home" to determine my root page, but I allow an instance of a simple forward slash, For my
Provided that you add
and for
Hopefully that's enough to get you started. Feel free to ask any more questions if you have them. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
firstly I would like to congratulate the Payload Team to their amazing product. Beside some minor flaws, I really like working with it.
I have a wish for a video/better documentation/website template, namely the integration of a working example of nested pages.
It is one of the most common use cases when building extensive websites and I really had a hard time integrating it.
What helped me was the payload website itself, where it is nicely integrated.
So please implement a working example of nested pages into the website template or extend the docs on how to properly integrate it.
Thanks and keep up the great work!
Beta Was this translation helpful? Give feedback.
All reactions