Move post/page title to the top bar. #27093
Comments
It would also provide a way to change the post title when the post template does not include a post title block. Some post formats do this. |
Yeah, that's a common pattern in themes in general. |
It would be great to create movement in this issue. When the top toolbar is active it can be moved to a second row. The first row can contain the page/post title. Let me know how I can help move this issue onward. |
I agree it would be good to display the document title, and include the popover for editing the title & permalink. But the interaction between the "Site" and "Page" buttons in the gif above isn't clear enough imo. I suggest we leave that out for now, since there will be (are already) other UI patterns for moving between template / content editing. |
It might also be good to include the template information here, and a link to view all posts. post.title.mp4 |
I think we should break this down into iterations. First version/iteration: (With a focus of atleast getting the fist iteration into WP 5.8.) We need a developer for the above part. As it is a totally new concept for the Post Editor to have the page/post title in the top bar. |
It may be fine to leave the post title on the canvas for now. Otherwise I imagine the text would read "Untitled Page" (or similar) until you click it. Clicking should shift focus directly to the title input. |
A couple of options. As In automatically add a placeholder showing the Post/Page title block. User adds it there and also sees the name added to the top bar. EDIT: This way a user are also able to remove the Post title block from the layout/canvas area. Creating a new post/page the cursor blinks in the title field in the top bar where the placeholder says "Add page title". @jasmussen Joen could you also take a look? Thank you. |
There's also this issue for the block toolbar when it's close to the top of the screen: #29464 |
Having an interface in the top toolbar is something we've discussed for a while. The primary benefit is that it is the top of the hierarchy, so it clearly implies a document-level effect. The downside is that it can potentially take up a lot of valuable space. Going back to the intent of this ticket: moving the editing of the page/post title to the top toolbar to result in a more WYSIWYG experience, we should be careful with, as the title in the canvas is a well-learned interface, any change will cause headaches for people who just blog. But there is a flow to figure out. In the site editor, we need the top center dropdown interface to show document level metadata and attributes. It's present even in the new post-editor to template-editor switch: Both of those are more accurate WYSIWYG than the post editor is at the moment. So it might be healthy to split the conversation into two flows:
Those two, when both addressed one by one, could help give us insights into whether it makes sense at all to remove the post title from the post editor when it's also missing from the post template.
If we focus not on removing the page/post title from the canvas, but instead creating the new dropdown interface to also edit it there, it will help surface better answers to those questions. At the moment we can only make assumptions. To that extent, I think Jay best outlines the longer term thinking around such a top toolbar interface in his post about document attributes: it's about better surfacing key document metadata in an obvious place. More accurate WYSIWYG preview of your post could benefit from that, but needs its own flow explored. |
That might work! |
Even without any changes to the post title in the canvas — keep in mind, a lot of themes style it to match the template — I could see value in showing important meta attributes in the to dropdown. |
Additional thoughts. Step by step.
Post-title-block-Post-Editor.mp4https://www.figma.com/file/NE9Y71AMMxVkuLEFzCtoNa/Moving-Post-title-to-top-bar?node-id=0%3A1 What do you think @jameskoster , @jasmussen and @vdwijngaert ? |
Hey @paaljoachim, appreciate the work you're putting into this, turns out it's quite complex :)
That could work. However, when a template is being used, the location and styling of the title should probably be left to the template editor. Alternatively, we could have a slimmed down post title block that can open the current template (if any) in the template editor? This could be a sidebar panel, toolbar action, etc. But then, as @jameskoster stated, some templates don't include a post title block. So yeah, maybe we should leave the title unharmed for now? We could make it more obvious that it might not reflect how it would look on the front end. For now, we can just focus on making the title also editable in the toolbar. |
Yeah in this case the post title is always going to be tied to a template, whether that is an "old" php template, or a block template. So allowing folks to manipulate (or even remove) it while editing a post will be misleading.
+1. We can address the on-canvas post title in a follow-up. |
I think space between the left and right parts of the header gives identity to Gutenberg. I have made this, what do you think? |
That looks really cool, @amir2mi Amir! |
Me too, just wanted to share the idea [those buttons can be hidden as well]. |
Earlier today I shared a concept that explores moving template attributes to the top bar: #31076 (comment) I decided to also explore how this pattern might be applied to posts and pages: page.attributes.mp4I'm quite excited about this concept not only because it streamlines the inline editing experience, but also because it would enable us to greatly enhance the existing quick edit interface that exists in list view:
|
Here's how we could potentially take the concept from my previous comment and strip it back to an MVP in the context of this issue: document.title.mp4 |
I'm curious why it should be a modal as opposed to a dropdown? |
I was under the impression we were going to do a dropdown as well. |
Modals scale better: We're using modals for names elsewhere: Modals are arguably more user-friendly on mobile. Popovers feel fragile since tapping outside accidentally will close the popover. Finally, modals are portable. We can use this same interface to replace the ugly quick-edit feature in list view, as outlined in #27093 (comment). All that said, it doesn't have to be a modal just yet. It's only a wrapper after all. The UX is virtually identical both ways. My main argument for using a modal now is that it paves the way for when we expand the interactions here to include other document attributes like template selection. Edit: Here's the same flow, using a popover rather than a modal: popover.mp4 |
While I see the sense in putting document properties there, I'm not yet convinced we can put all of it there. And the problem with the dialog is that it loses a bit of connection to the post title, whereas the dropdown has a clear connection to the title, giving a strong connection. Since both dialog and dropdown are technically modal (they trap tab inside and close with escape), the dropdown could become fullscreen on mobile still, even if it's a dropdown on desktop breakpoints. It's possible that we will end up needing all the space of a dialog in the future, but I think for the near future we should start smaller, also literally |
Here is the link to the PR which Koen @vdwijngaert is working on. It could use some feedback/advice. |
As I logged into the Make WordPress Core web site to begin creating the Core Editor Summary. Make-WP-Core-Add-title.mp4I have not seen the "Add title" text button before, and I am wondering where it comes from. Then I begin wondering if this is something new that has been added, and began thinking about how we can actually make use of it for moving the title to the top bar issue. EDIT: Riad mentioned this on Slack: |
scruffian commentedNov 19, 2020
I think it makes sense to move the page/post title into the top bar like we do for template names. Often we will want to add the Post title inside another block (e.g. Cover block), or in a column.
This would give users more flexibility about where the Post/Page title appears:
Originally suggested by @paaljoachim here: #20877 (comment)
The text was updated successfully, but these errors were encountered: