Skip to content
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

Site Editor Menu block support #64

Open
helgatheviking opened this issue Jan 10, 2023 · 3 comments
Open

Site Editor Menu block support #64

helgatheviking opened this issue Jan 10, 2023 · 3 comments

Comments

@helgatheviking
Copy link
Owner

helgatheviking commented Jan 10, 2023

Eventually will probably need this.

  1. Can you add fields to the sidebar?

2023-01-10_14-29-site-editor-menu-item

  1. Can you modify the visibility of the menu items? How are they even rendered? Is it REST API?
@porg
Copy link

porg commented May 13, 2023

Some input:

  • For now the Gutenberg menu objects are severely inferior to classical menu objects, which could:

    • have much more metadata
    • be synced to page hierarchy fully automatic, e.g. by plugins like Nested Pages and its ☑︎ Sync Menu option.
    • be managed efficiently in bulk in backend UIs, whereas the new menus for now are only manage-able "in place" in the Block Editor.
  • The native navigation block offers to import classical menus.

    • But this is a oneshot operation and no synchronization. In the progress they loose all their extra metadata, and from then on are Gutenberg menus, which cannot benefit from all the extra classical menus benefits.
  • FYI for the meantime there's a way to continue using classical menus within block themes, see my writeup.

    • This is concretely for Max Mega Menu, but the underlying principles are possible generalize-able.
    • In the long run ofc the Gutenberg menus must get these extended capabilities too, if they want to be applicable for Pro sites too. B/c as they are now, they feel not much more than a "proof of concept".

@helgatheviking
Copy link
Owner Author

Appreciate the notes. To my knowledge the Nav Menu block is not extensible at all, so I would agree that makes it far inferior to the classic menus.

@helgatheviking
Copy link
Owner Author

Per Nick Diego, this is possible now and is being done in the Block Visibility plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants