-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Block - improve placeholder flow #35818
Comments
One thing that might be confusing is the apparent repetition between "Choose existing" (navigation block) and "Add existing menu" (classic menu). Ideally we have a single-step placeholder, but just putting all the current options of the two placeholders together won't work very well. Would be great to have some design thoughts on this! Cc. @jasmussen (I assigned myself the issue as I'm happy to deal with the implementation but need some guidance on what to do 😅 ) |
Yeah, that is definitely confusing. Perhaps the 'Add existing menu' option could be rephrased to something like 'Copy existing menu', and the dropdown could include both the new navigation menus and classic menus. |
Some of the dynamic behavior of the new interface is still a little beyond me so forgive me if I'm slow to pick this up, and please correct what I get wrong, thank you. As I understand it:
If that is the case, then it seems like the simplest solution would be to move the "Choose existing" dropdown into the block itself, and to replace the "Add existing menu" dropdown. What would be the shortcomings of this one? |
This step does create a new 'wp_navigation' post. It's based on the flow when adding a new Template Part block. It could be an option to move the naming of the post until after having clicked 'Start empty' or 'Add all pages'. So there would be one step to the placeholder with the following options:
|
What if we just use the classic menu name and skip this step altogether? The name can always be changed later in the inspector. |
Yeah, wasn't sure whether it would be necessary. Sounds good 👍 |
What problem does this address?
#35746 would introduce the concept of saving a navigation block's data to a separate post type, similar to how a template part works.
That PR introduces an extra step in the block setup. First you create or choose an existing 'Navigation menu':
If a new one is created there's a second step with the familiar block interface placeholder:
This could do with some refinement.
The text was updated successfully, but these errors were encountered: