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

Consider making Post Template block a bundled template part with new semantic area #44362

Open
jameskoster opened this issue Sep 22, 2022 · 2 comments
Labels
[Block] Post Template Affects the Post Template Block [Type] Discussion For issues that are high-level and not yet ready to implement.

Comments

@jameskoster
Copy link
Contributor

It's common for archive templates like Index, Archive, Category, Tag to display post content the same way. At the moment, if you decide to change the design in one template, you then have to replicate that change across all the other templates as well. Traditionally themes would include a content.php template part to circumvent this.

If you try to do this in the block editor, the experience is a little funky (#44160).

An alternative solution would be to make the Post Template block a bundled template part in its own right, with a new semantic area (similar to header / footer). A benefit with this approach is that it immediately becomes possible for users to edit in focus mode, swap with other post-content template parts, browse patterns, etc.

cc @WordPress/theme-team for thoughts.

@jameskoster jameskoster added [Type] Discussion For issues that are high-level and not yet ready to implement. [Block] Post Template Affects the Post Template Block labels Sep 22, 2022
@jasmussen
Copy link
Contributor

As a site editor equivalent to content.php, it should be possible to edit this in isolation, in focus mode. That way you can focus just on one generic post where one can manipulate things without being confused by all the content.

As a way to address this, could we leverage the fact that "Post Template" inside a query loop already mostly functions like this, and simply add an "Edit" button to its toolbar?

Screenshot 2022-09-28 at 14 35 35

@jameskoster
Copy link
Contributor Author

We could, that would be a nice enhancement. But it only satisfies one half of this issue.

If it is not made clear that it is synced, it might be too easy to confuse editing in isolation as editing a single post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Template Affects the Post Template Block [Type] Discussion For issues that are high-level and not yet ready to implement.
Projects
None yet
Development

No branches or pull requests

2 participants