Block patterns with template type: Index do not load on the index template #54776
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Block patterns have a parameter called template type. A template type is, for example, a page or archive.
Patterns with this parameter are meant to be available when you:
But block patterns with the template type
index
do not show in the pattern selection modal when you are editing the index.Step-by-step reproduction instructions
You can test this with the theme Twenty Twenty-four, downloadable at https://github.com/WordPress/twentytwentyfour
Delete the home.html template in the theme folder.
Open the Site Editor, and open the index template.
Delete all blocks. Save.
Reload the editor.
Confirm that no pattern selection modal shows.
Expected: There should be two patterns available.
Screenshots, screen recording, code snippet
No response
Environment info
Current 6.4 nightly through the beta tester plugin
Current Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: