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

Creating page templates from the block editor is a subpar experience compared to the Site Editor #57636

Open
carolinan opened this issue Jan 8, 2024 · 6 comments
Labels
[Feature] Templates API Related to API powering block template functionality in the Site Editor Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@carolinan
Copy link
Contributor

What problem does this address?

When you edit a page or post in the block editor, you can open the Summary panel and click on the template name and select "Create new template" menu item to create a new template.
The next step is choosing a name for the template.

This flow has already been improved in Gutenberg compared to just using WordPress 6.4.x
But then you are redirected to the "template editor", and there are some default blocks added to the template automatically:
A couple of group blocks, site title, post title and post content.

new template with automatically added blocks

I think that users finds it difficult to go from here, to a template that matches the rest of the theme/website.

What is your proposed solution?

Add the blocks from the default page or post template, respectively, instead of these basic blocks.

@carolinan carolinan added [Type] Enhancement A suggestion for improvement. [Feature] Templates API Related to API powering block template functionality in the Site Editor [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable labels Jan 8, 2024
@talldan
Copy link
Contributor

talldan commented Jan 8, 2024

Oh yeah, it isn't great. I hadn't tried it before 😄

Hopefully the editor unification might lead to this being in a better place.

I've also wondered if there could be quick ways to add the header/footer template part areas to new empty templates.

@carolinan
Copy link
Contributor Author

I believe it would be good to get some more eyes on this editing flow and see if it can't be updated for 6.6.
@WordPress/gutenberg-design

@carolinan carolinan moved this to ❓ Triage in WordPress 6.6 Editor Tasks Apr 19, 2024
@carolinan carolinan added the Needs Design Needs design efforts. label Apr 19, 2024
@jameskoster
Copy link
Contributor

For now it might make sense to reuse the experience you see when creating a template from the admin; when you land in the editor a modal appears offering suggested options for the new template. The options include the 'closest' template in the hierarchy, plus any patterns supplied by the active theme that are associated with the new template.

That way we can refine this experience holistically later, potentially aligning it with the 'add new page' flows. For instance instead of forcing users to select a single pattern from a limited scope, we could allow more expression by allowing them to pick and choose specific sections while composing the template in zoomed out view (#50739).

@carolinan carolinan added Needs Dev Ready for, and needs developer efforts and removed Needs Design Needs design efforts. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable labels Apr 26, 2024
@carolinan carolinan moved this from ❓ Triage to 📥 Todo in WordPress 6.6 Editor Tasks Apr 26, 2024
@abhi3315
Copy link
Contributor

@carolinan It feels we might have to recreate a modal for editor similar to side-editor https://github.com/WordPress/gutenberg/blob/trunk/packages/edit-site/src/components/add-new-template/index.js

@talldan talldan moved this from 📥 Todo to 🏈 Punted to 6.7 in WordPress 6.6 Editor Tasks Jun 24, 2024
@noisysocks
Copy link
Member

@carolinan It feels we might have to recreate a modal for editor similar to side-editor https://github.com/WordPress/gutenberg/blob/trunk/packages/edit-site/src/components/add-new-template/index.js

We can move this to @wordpress/editor which is the package used for components shared by the site editor and post editor.

@ndiego
Copy link
Member

ndiego commented Sep 17, 2024

Has any progress been made on this? If not, thoughts on punting to 6.8?

@noisysocks noisysocks moved this from 📥 Todo to 🏈 Punted to 6.8 in WordPress 6.7 Editor Tasks Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Templates API Related to API powering block template functionality in the Site Editor Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
Status: 🏈 Punted to 6.8
Status: 🏈 Punted to 6.7
Development

No branches or pull requests

6 participants