[wp-trac] [WordPress Trac] #52688: Make block type aware of variations
WordPress Trac
noreply at wordpress.org
Mon Mar 1 19:24:22 UTC 2021
#52688: Make block type aware of variations
-------------------------+-----------------------------
Reporter: gwwar | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Currently block variations (not style variations) are only defined on the
client. In some cases, creating block variations on the server can be very
useful, especially when needed data is not exposed in the REST APIs.
I have an example use case for adding navigation link variations. The
navigation block currently allows insertion of Links, Post Links, Page
Links, Tag Links and Category Links. By adding server link variations, if
we install a Portfolio plugin for example, we should also be able to add
Portfolio Links. The taxonomy and post type REST API doesn't allow
filtering by `show_in_nav_menus`, so server defined block variations makes
this a much easier problem to solve.
Example Use Case Issue:
https://github.com/WordPress/gutenberg/issues/24814
Proposed PR: https://github.com/WordPress/wordpress-develop/pull/1015
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52688>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list