-
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
Add new Template modal #50395
Comments
Currently, when creating a new template (page, article, etc), you have the option to choose between applying it to all items or to a specific item. If I want to build a template for my posts, I click on the "+" and I get the following options: My proposal solution is to allow users to apply templates to specific items (and not just one item or all items). This message is the summary of this discussion #50415 with @jasmussen @carolinan @jameskoster |
Turns out this was a mis-interpretation on my part. This issue is just about polishing the current modal, rather than moving the creation flow to the sidebar. OPLike https://github.com//issues/48456, we may need an "iteration 1" that concentrates on moving the add template flow to the sidebar, and circle back to incorporating the patterns-as-sections work later.Here's a design that can potentially serve as that first iteration: add-template.mp4The first control determines the template type. On a fresh install this would just be blog or page hence the segmented control, but it can expand to include things like Store as you add plugins (would probably need to transform to a dropdown). This allows for some more natural language in the subsequent controls, where the user is able to add definition to the scope. To begin with it will likely be simplest to replicate the current functionality, but the "Choose a page" control can easily be expanded in the future to account for the "Selected pages" as described by @tomxygen. Finally the user can select a starting pattern, contextual to the template they're creating. |
What is a blog template? It is unclear, it is not a term currently used or established? |
This comment was marked as outdated.
This comment was marked as outdated.
I still think that is more confusing than the current ui. What if you need a custom template that works with both pages and posts and custom post types? Neither pages or posts would really match. |
This comment was marked as outdated.
This comment was marked as outdated.
What about naming the tabs "Site" and "Custom" (or site templates and custom templates ). Site templates would be created, not "applied". These are all the structural templates that can not be assigned to a post or page in the block editor. "Apply to" would be the same as "assign" and only list pages, posts, and supported CPT, and assigning would be optional. |
I'm updating this and #48456 to split the moment of creation (quick modal) from the patterns step (editing) so we can better focus the design and implementation work. |
What's the main benefit of creating a template specifically for a post/page vs just creating a custom template and applying to the post/page? I think the ideal flow would actually start in the post/page itself vs the templates screen. |
So I spent a bit of time playing with this today and have a few thoughts.
create-template.mp4 |
Connecting the command center to the add-template modal makes a ton of sense to me 👍
You're essentially suggesting that the
On a similar train of thought – how would you represent templates like I think it's worth continuing to explore this concept. But there's probably value in refining the appearance of what we have for 6.3 as well. There may even be a middle ground that better covers both technical / non-technical users. |
@SaxonF okay I thought about it some more, and I think this can work with a couple of minor alterations :)
Answering my own question, I went ahead and mocked up every single template so that we might identify any issues with this format and tweak accordingly: To clarify: a user would never see a list this long, unless they were building a theme entirely from scratch. Most of the time templates will be hidden, either because the active theme already includes them, or because we've deemed them too advanced to include so prominently in the UI. Most of the time folks would see something like this: It goes without saying that renaming all the templates is a pretty big deal, so we'll need a lot of positive feedback and potentially some user testing before fully committing. Polishing the current modal still feels like a worthwhile endeavour. |
This is done and implemented. There are some good design ideas to continue to refine that we should move to follow ups. Thanks for all the work! |
This issue goes over design improvements to be done on the "new template" modal that lists all the available theme hierarchy templates and custom templates.
It doesn't include the work done on "zoomed out" and sidebar details in the frame mode, which is tracked separately in #50739.
The text was updated successfully, but these errors were encountered: