Opened 11 months ago
Closed 11 months ago
#64107 closed enhancement (fixed)
Block Bindings: Add/update sources for use with Navigation blocks
| Reported by: | Bernhard Reiter | Owned by: | Bernhard Reiter |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.9 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Block Bindings can be used with the Navigation Link and Navigation Submenu blocks to make sure that the link destination is kept up-to-date based on other attributes, even when the destination changes. Specifically, a Navigation Link or Submenu can point to a given post object or taxonomy term page; these can be specified by a combination of kind (e.g. post-type), type (e.g. page), and id attributes. (The destination can change if e.g. pretty permalinks are used, and a given page's slug is changed.)
The core/post-data source lends itself for the case of post-type links; however, it needs to expose the given post object's link field. For taxonomy terms, a new core/term-data source should be introduced.
Change History (3)
This ticket was mentioned in PR #10305 on WordPress/wordpress-develop by @Bernhard Reiter.
11 months ago
#1
- Keywords has-patch added
@Bernhard Reiter commented on PR #10305:
11 months ago
#2
Failing CI jobs seem to be unrelated (and present on all recently filed PRs); they seem to be related to the Gutenberg build system (some TypeScript build error specifically?)
I've asked in WordPress Slack.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Carry over changes to the
core/post-datasource from https://github.com/WordPress/gutenberg/pull/72165.Trac ticket: https://core.trac.wordpress.org/ticket/64107