-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation Panel: Hide Page List parent when it's the only item in the menu #48714
Comments
This makes sense to me in the limited context of Browse Mode sidebar only. In other contexts we need Page List parent to be able to manage controls on the Page List block itslef (such as setting the "parent"). I am conscious that this may introduce yet another fork in the Offcanvas Editor logic which will be accounting for a specific placement. |
On a site where the page list is the only item on the menu. I guess with this change we just show a list of pages without any action possible besides inserting another block which is a sibling of the page list? I guess a possible way to implement this is on the browse mode sidebar to detect cases where page list is the only block, and if that is the case pass to the off-canvas editor only each page list item as the top block? |
What should happen to the "inserter" in that case: Should it insert blocks within the page list block or after it? |
Is Page List capable of entertaining different child blocks? 🤔 I can't seem to place blocks inside it in the Editor, so assuming it's not, we might need to expose the structure when more blocks are added. Otherwise it would be confusing why you couldn't place blocks between the page links. |
Hi @youknowriad, |
I tried this in 48971 for when the page list block is also a child of a navigation link, in various ways including copying from Jorge in 48725. It's complicated by the fact that:
Highly involved. Not the way blocks currently operate. I wonder if this need is signaling that we need to reinvent managing pages via the navigation block, instead of using the page list block? We could update the navigation link block to know if it is a page? Even the navigation block could have a system to build navigation link trees based on the page tree. Having a site structure "entity" would also be nice so that when users reorder, add, delete, pages they are presented with edits to "site structure" which reflect in their pages being reordered, created, deleted? |
I don't know if we need to unilaterally hide Page List. It still has practical uses in more elaborate menus. |
When a menu only contains a Page List block, the parent is kind of superflous, and makes navigating around a bit tedious (you have to manually re-open the Page List every time):
page.list.mp4
Since you cannot really do anything with the Page List in this scenario (except remove it, which seems ill-advised), perhaps we can hide it and just display the children as if they were top-level?
The text was updated successfully, but these errors were encountered: