-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refine template flows in the post editor #31591
Comments
This is also a place to explain a bit what a template is or allows. |
I liked the Figma example of the modal, but also the preview of the current template in the template section of the document sidebar. |
Here are some initial ideas for the flows/UI. Inline with #27093 I've moved the Template panel to the top bar in an effort to reduce reliance on the Inspector, and make moving between post/template editors feel smoother. I think this works well, but it's also worth noting that the overall UI could just as easily live in the Inspector instead, if that was a preference. Changing a templatechange.template.mp4
Editing a templateedit.template.mp4
Create a new templatecreate.template.mp4
Moving between content / template editingflows.mp4This video concentrates solely on the flows for moving between the post and template editors. When editing the template it is possible to get back to the referring post two ways:
Method 1 will likely be implemented much sooner than method two. This replaces the existing "<- Back" button in the Template editor. |
I don't know but I personally don't like that dropdown under the template title entirely. I think it's a bad non discoverable pattern and it splits the "document" settings between two places. I believe we should continue iterating the UI in its current place (the panel) until we move everything (all document settings) to the dropdown potentially. |
It looks beautiful, but I agree with @youknowriad on keeping it in the Inspector. Maybe make it toggle to the top bar when you go to full screen mode. |
The other thing worth mentioning is that not all the templates are previewable. That select mixes block templates and non block templates in classic themes. |
Worth noting that putting this UI in the Inspector does marginally degrade the post <-> template editor UX (compared with the top bar implementation) due to the inconsistent placement of the pathways, as this video demonstrates: edit.template.mp4
I demonstrated how we can (potentially) handle this in the template selection modal: We can easily refine that preview thumbnail to include an explanation if y'all think that'd be helpful. |
I wonder if the templates with "previews" is going to be the special case when using classic themes in which case we may want to use a regular "select" for these themes and maybe the visual templates for FSE themes. |
I think that will certainly be the case. But as soon as a single block template exists I think it is worth showing the previews as they clearly communicate the user-friendliness of block themes in stark contrast versus classic themes. It's like GUI vs command line :D
I think that's fine when no block templates exist at all. The designs above could be adapted by replacing the template selection modal with a popover (or regular select dropdown), and hiding the preview in the panel itself: Editing and Creating new template flows can behave the same. |
What would be the flow for creating a template specific to a category slug? |
I have heard several users say that they want to edit the categories using blocks in Admin > Posts > Categories > Description field. |
Yes that would seem like a good interim step – connect the category management screen with the site editor. But ideally it should be possible to access a category (or any archive for that matter) from within the site editor. Both of these things feel like separate issues to me, since this one focusses on templates applied to single entries in the post editor. Edit: I just remembered that I opened #35504 a while back :) We'll probably also make it possible to add a template for a specific category slug via the main template management view as a part of #37407. |
I've been looking at the various template related issues as we organise the tasks in #41241. As a part of that effort this issue has been distilled down to just two tasks:
This issue has prior art that is no longer relevant, so in the interest of tidiness I'm going to close it out in favor of dedicated issues for the aforementioned tasks. |
Template exercises in relation to a single post are accessed through the following interface(s):
There are a number of issues we might try to address by revamping the design a bit here:
Edit: Working Figma file here.
The text was updated successfully, but these errors were encountered: