Skip to content

Nav off-canvas editor not offering the option to create a new page when it doesn't exist #46193

@getdave

Description

@getdave

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.


    it also looks like the off-canvas editor is not offering the option to create a new page when it doesn't exist. I don't know if that's intended or not. If not, then that's definitely something to follow up on.

Originally posted by @MaggieCabrera in #46189 (comment)

Metadata

Metadata

Assignees

Labels

[Block] NavigationAffects the Navigation Block[Status] BlockedUsed to indicate that a current effort isn't able to move forward[Type] BugAn existing feature does not function as intended[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions