I suggest having a blank new item line appear in the edit form immediately below the current item when the title field gets focus. This would make it much easier to insert new items in the middle of a long menu.

Comments

donquixote’s picture

The consequence would be that a part of the list would jump up or down each time you focus a different line.

Example:

AAA              AAA (focus)
BBB           >  [___]
CCC              BBB
DDD              CCC
EEE (focus)      DDD
[___]            EEE
FFF              FFF

see the lines BBB, CCC, DDD and EEE jump down, as the focus goes from EEE to AAA ?
I would like to avoid this kind of jump.

Maybe you can change my mind if you show me an example where something similar is implemented :)

donquixote’s picture

To be fair, we already have a similar kind of jumping with the textarea resize effect, which I consider an acceptable tradeoff.

donquixote’s picture

As an alternative, how would you like an "insert item" button? just playing with ideas here..

donquixote’s picture

Wow, I notice there is another usability problem with this, even worse.
If you tab from one row to the next, you will always land on the blank new item before you can reach the next row. Or, if it really only shows up when hovering the title field (and not the path field), the blank line will be unreachable with tabbing. It will feel very inconsistent and awkward.

donquixote’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Active » Postponed

The "insert row" button can happen in 4.x, with the help of multicrud.

DrewMathers’s picture

donquixote,

Yes, an "insert row" button would be a good way to do this.

donquixote’s picture

I might do this even without multicrud:
- increase the number of empty rows at the bottom (say, 40 instead of 8), but hide all but one of them with javascript.
- reveal hidden rows when there are no visible empty rows left at the bottom.
- provide buttons to insert one of the hidden rows as a child or sibling of another item.

I'm not sure when I will have the time to work on multicrud. On the other hand, anything I do on multicrud can be reused for a lot of other modules I might create in the future.

How important is this feature request?

DrewMathers’s picture

donquixote,

The insert button would be a significant usability improvement. You could use Menu Editor to test a technique, then move that code into Multicrud later.

donquixote’s picture

The multicrud code has very little to do with the current version of menu_editor, so there is no way to migrate this.
I will have a look at multicrud again, and then decide what to do.

DrewMathers’s picture

There is a very nice implementation of insert/delete rows in http://drupal.org/project/options_element

donquixote’s picture

there is now an experimental/preview release of multicrud 2.x available, namely multicrud-6.x-2.0-unstable1. This release has a replacement for menu_editor included ("menu_multicrud").

It does not have the "insert row" buttons, but it does automatically add rows at the bottom.
We should implement these buttons on multicrud itself, so that every multicrud-powered form can benefit.
Unfortunately, the multicrud javascript is a beast...

apaderno’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

I am closing this feature request, as it's for a not supported project version. If you want to see this feature implemented for a supported project version, please re-open this issue.