-
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: Split Link block into Post, Page, Category, Link, etc. #22919
Comments
Each innerBlock of the Navigation block could be a certain type (page, post, link, category etc.) and even showing their own icon? Maybe each of these is a variation of the Link block. |
I updated the title and description to reflect that this is a subtask of #22096. |
#21050 is also related to this by allowing LinkControl so store ID with no URL. |
We could implement this using block variations. For example, Link could support a |
Right now linking to a WordPress entity (post, page, category, etc.) is done by inserting a Link block. The user then selects the entity and the URL of the entity is stored in the Link block's
url
attribute. This is not ideal, though, as an entity's URL may change.Instead of selecting a Link, we should allow the user to select a Post, Page, Category, etc. The ID of the entity would then be stored instead of the URL. The correct URL would still be rendered on the frontend using the block's
render_callback
.This is necessary for the flow described in #22096.
The text was updated successfully, but these errors were encountered: