Repository navigation
Hierarchy on pages opens children instead of the document #19264
Replies: 2 comments 1 reply
|
Yes, hierarchy on the pages collection is the intended way to build that tree, and the click behaviour is how the hierarchy view works in beta.6, not something in your config. In that view the name cell of a child row is a link to the hierarchy URL for that document, For the URL your setup is right. |
|
I tried hierarchies and immediately noticed the same thing. While I understand this may be useful for some scenarios like complex taxonomy trees, it doesn't feel natural as a replacement for the nested docs plugin. The same applies to (and is amplified by) the collection being removed from the default collections view in the sidebar instead moving to the tags tab. It would be good if some settings were exposed to make these behaviors more customizable. |
Uh oh!
There was an error while loading. Please reload this page.
I'm on Payload 4.0.0-beta.6. I want a to build page tree, where a page can sit under another page. The URL should follow that, like /about/team.
I turned on hierarchy for the pages collection. parent points at another page, and slugField is slug. The _h_slugPath field is what I need for the URL.
In the pages list, the By Page view does not open the page. Clicking the title shows that page's children. To edit the page I have to use the gear icon, or go back to All Pages.
Is hierarchy on the pages collection the right way to build this? And is there a way to open the page itself from that view?
All reactions