-
Notifications
You must be signed in to change notification settings - Fork 115
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 configuration for whether new elements are added to the start of the list instead of the end #566
Comments
Oh actually this is a bug, because |
This is actually by design. /cc @clarkepaul @newleeland . We add elements with a sort specifically set to "1" - that's why There's a way to add elements to specific parts of the area by hovering over the border between elements in the editor. For now I'll close the issue but we can still continue the debate 🙂 FYI the LOC for this: |
Yeah I hadn’t spotted that little border-hover-add button! Adding them to the end of the list seems more logical to me (I guess that was why the |
Yeah it wasn't an easy decision, you might not see them being added to the end of the page, specially if blocks are expanded (would need more visual feedback for adding to bottom). We are thinking to have a checkbox allowing people to choose if its added to the top of bottom but no designs for that yet. |
Maybe we could change up the UX so that this action is more intuitive? At the moment I've come across a few developers that weren't aware of this action. |
Yep we could look to see if we can make it more visible. We should be promoting new features like this within the UI "NEW - add blocks directly between other blocks... look here... ". |
Found this while looking for a way to add to the bottom myself as it's a very frustrating experience trying to add multiple blocks to a new page using the obvious Add button. Wasn't aware of the hover action either. How about just adding a prominent "Add" button to the bottom too? Either a 2nd green "Add" button, or, even better, make the last hover "+" button larger, more prominent and always visible? Craft CMS's excellent Matrix Field has their Add buttons at the bottom only: |
I'd be for defaulting to the bottom, or at least have it configurable somehow, or two sets of buttons where above adds to the top and below adds to the bottom — Can be "Add first" and "Add last" or so. |
I hacked together a workaround for a project I was working on that needed new elements to be added to the bottom of the list: https://gist.github.com/kinglozzer/a2c27f2a0c3563d8a72f8dfb982fc7fa |
Let's make this configurable |
Noting that we've recently finished #704 which improves the experience of adding blocks inline - something that can be quickly used to add a block to the bottom, should the default be to add the block to the top. |
Radical! So this would be user-configurable rather than dev-configurable (or both, in that a dev could configure the default position)? |
If we went as far as implementing the UI switch then I don't think there is much need for the dev config? Keep in mind that switch wouldn't be there for the action which inserts blocks in-between others. Design is just a suggestion to gauge what others think. |
Just thinking that if you always wanted to add to the bottom you might want that to be the default setting in the add block dialog. We'd also need to ensure that that toggle wouldn't show when adding a block in between existing blocks. |
I think it looks 🔥 |
Just had a client requesting this feature so +1 |
Hi all, I've updated the description to reflect the conversation in this issue and added some basic ACs. Please feel free to suggest other points here |
After a discussion with the product team I got some feedback that the toggle might not be as intuitive as I had thought, so here is another idea to put forward for consideration. Essentially an icon (replacing the toggle) with something similar these indicating its placed top or bottom. Showing text when hovered to explain iconography (Add to top, Add to bottom). If adding between blocks was more intuitive/obvious this issue probably wouldn't exist. There are other alternatives to doing this issue for example, a walkthrough of new UI features highlighting "New" things with tips on how to use functionality. This is probably a more usable feature throughout the UI but also a bigger piece of work. |
Ran this issue passed the CMS Squad, summarising some of the feedback.
|
How about duplicating/splitting the Add block button to Alternatively, if the UI controls for adding the block on top and at the bottom were always visible (not just on hover), that would work IMHO too, as suggested in
|
Regarding the icons, I'd find the presence of an arrow a bit confusing and would expect this would either be moving something (to the top/bottom) or something to do with sorting. How about something more like these: Admittedly these would work better if they could use a lighter gray for the existing blocks to emphasize the position of the "added" block. |
Yeah, of course, I just used Paul's images to illustrate the concept. |
Has this feature gotten anywhere yet? I have had another request for it this week. |
Overview
There are differing preferences on whether a new block should be added to the top of the list, or the bottom. For large lists of blocks on a page adding to the top might best sense, while for pages that don't use many blocks (we see an average of 4 blocks per page) it might make more sense adding a new block to the bottom - following the flow of adding new content to a page.
Acceptance criteria (WIP)
Old description:
In general content editing it could be argued that’s okay, because we don’t know where a new block is destined to be positioned. I think adding to the end is a better default, as when creating content for new pages you either have to drag+drop blocks around each time you add a new one or create content in reverse order
The text was updated successfully, but these errors were encountered: