You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many Themes utilise the Page List block (as an inner block) as a fallback experience to ensure the user sees some content if a wp_navigation is not assigned to the block.
In #42182 however, we are updating the block to always respect and render inner blocks if they are provided by the block.
Most Themes will likely want to remove the inner blocks because it will mean they are unable to take advantage of future work to enable automatic selection of menus (based on various heuristics).
As a result we need to update the block to ensure it provides appropriate fallback content. The front of the site already does this by rendering a list of pages. We now need to update the editor implementation to mirror this.
Therefore instead of rendering a placeholder as a default fallback, the block should instead render a Page List block.
As part of this effort we should also tackle #42602 as this will help avoid cluttering the UI.
The text was updated successfully, but these errors were encountered:
getdave
changed the title
Nav block remove placeholder in favour of list of Pages as fallback setup state
Remove block placeholder in favour of list of Pages as fallback setup state
Jul 20, 2022
getdave
changed the title
Remove block placeholder in favour of list of Pages as fallback setup state
Remove block placeholder in favour of list of Pages as fallback state
Jul 20, 2022
I have mistakenly rebased #42735 on trunk and getting it back is a pain. If eventually that goes in I'll figure out the authors thing as the PR is branched from this one originally.
We are aiming to normalise the behaviour of the Navigation block across both the Editor and the front of the site.
Many Themes utilise the Page List block (as an inner block) as a fallback experience to ensure the user sees some content if a
wp_navigation
is not assigned to the block.In #42182 however, we are updating the block to always respect and render inner blocks if they are provided by the block.
This means that any Themes that include the Page List block as part of their default Nav block within their template parts will cause the page list block to be rendered over all other possible content (e.g.
wp_navigation
posts .etc).Most Themes will likely want to remove the inner blocks because it will mean they are unable to take advantage of future work to enable automatic selection of menus (based on various heuristics).
As a result we need to update the block to ensure it provides appropriate fallback content. The front of the site already does this by rendering a list of pages. We now need to update the editor implementation to mirror this.
Therefore instead of rendering a placeholder as a default fallback, the block should instead render a Page List block.
As part of this effort we should also tackle #42602 as this will help avoid cluttering the UI.
The text was updated successfully, but these errors were encountered: