Template settings panel in Block Editor is unclear on user actions. #34015
Labels
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
Needs Design Feedback
Needs general design feedback.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently, when you load up a post and the available Template's get populated in the Template Settings panel in the Block Editor, you see a drop down with "Default Template" and the available options. Underneath it you have Edit or New options to take you to the Template Editor.
Because there's a dropdown with the current/default front end template selected, when I click on "New" I assume that I'm taking an action like "create New Template from default" and expect the Template Editor to populate with whatever Template I have selected.
However, what you really get, is a new Template with whatever has been set to the 'defaultBlockTemplate' setting for the block editor (e.g. as could be explicitly set via the 'block_editor_settings_all' hook). If the theme hasn't explicitly set a defaultBlockTemplate for that post type, you get the WP default, which is usually very different from the theme templates.
What is your proposed solution?
Adding a toggle to the Template Settings panel, similar to how background color has "Solid" and "Gradient" would alleviate this.
The default screen could have the dropdown with templates and the Edit button, and the Toggle could be effectively "Create" or "Create New" or "New."
Ideally, long term, you could have a dropdown with templates pulled from the corresponding .html files, that'd allow you to use as a base in creating a new template. But short term, separating them so it's more clear that you're creating a new template from scratch, would be good.
Themes can already use the 'block_editor_settings_all' hook to create some basic default templates based on simple post types - so it might make sense to have two options: create from blank or create from default.
The text was updated successfully, but these errors were encountered: