Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template settings panel in Block Editor is unclear on user actions. #34015

Open
fwazeter opened this issue Aug 11, 2021 · 0 comments
Open

Template settings panel in Block Editor is unclear on user actions. #34015

fwazeter opened this issue Aug 11, 2021 · 0 comments
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.

Comments

@fwazeter
Copy link
Member

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.

@fwazeter fwazeter changed the title Template settings panel in Block Editor is unclear on user actions. "[Package] Block editor" "[Feature] Template Editing Mode" Template settings panel in Block Editor is unclear on user actions. Aug 11, 2021
@getdave getdave added [Feature] Templates API Related to API powering block template functionality in the Site Editor [Feature] Template Editing Mode Related to the template editor available in the Block Editor Needs Design Feedback Needs general design feedback. labels Aug 11, 2021
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants