-
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
Nav off-canvas editor not offering the option to create a new page when it doesn't exist #46193
Comments
Ran into this while creating the next call for testing for the FSE Outreach Program. Would be great to see addressed and have some consistency here! Add.draft.page.mov |
Noting that this was brought up in the latest call for testing for the FSE Outreach Program as a point of inconsistency:
|
I now know exactly how to fix this. |
This was a bug whereby the functionality was disabled for the Link UI component used in the Nav list view. It's fixed in #52166. Noting that this required the work from the 6.3 cycle to allow this to happen. |
In the Nav block when creating a new link, typing in the name of an entity which doesn't exist brings up a
Create new draft page
option in the Link UI search results. This allows you to create new draft pages directly from the Nav block.That functionality is not present in the Nav offcanvas experiment.
Why?
It's intentional in the sense that I deliberately removed it.
Why?
Because including that functionality requires saveEntityRecord from @wordpress/core-data and we need to avoid coupling that package to block editor. I don't yet have a good way around this...
This is blocked by the above.
Originally posted by @MaggieCabrera in #46189 (comment)
The text was updated successfully, but these errors were encountered: