Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At now by default editablefields for Drupal 7.x adds button "Click to edit" for each field.
But with 6.x-1.2 they adds floating "[edit]" link to each editable element, that don't eats the space and looks more comfortable.
I can't find the way to display edit link in editablefields 1.x for Drupal 7.x like in 1.2 for 6.x, so maybe it miss in core of module.
Can you add this feature in editablefields 1.x for Drupal 7.x?
Comment | File | Size | Author |
---|---|---|---|
#9 | editablefields-1285430-9.patch | 4.54 KB | bfr |
#7 | editablefields-1285430-7.patch | 4.53 KB | tim.plunkett |
#5 | editablefields-1285430-5.patch | 4.39 KB | tim.plunkett |
#3 | editablefields-1285430-3.patch | 3.86 KB | dags |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedThis is the job of CSS... we could include a generic CSS in the module, if someone wants to contribute one :)
Comment #2
MurzSeems that in 6.x-1.2 this done not with css only, but with javascript in editablefields.js:
Maybe we can reuse this code?
Comment #3
dags CreditAttribution: dags commentedHere's a first attempt. It adds an instance setting for "Click to edit style". The CSS is a work in progress, especially since the D6 was a link and this is a button.
Comment #4
tim.plunkettI'm not sure which is easier, making a link behave like a submit button, or making a button look like a link.
And that depends on how closely this should mimic D6.
Comment #5
tim.plunkettAddressed an issue with #states/#dependency for the Views UI.
Comment #6
tim.plunkettI have a new patch for this but I left it on my work VM so it'll have to wait until tomorrow morning.
Comment #7
tim.plunkettAdds a link with JS that triggers the submit button. Props to xjm for the suggestion.
Comment #8
Steven.Pescador CreditAttribution: Steven.Pescador commentedWorked a treat for me! Cheers Tim & xjm.
Comment #9
bfr CreditAttribution: bfr commentedGreat job! I added a little fade there to make it look nicer.
Comment #10
bfr CreditAttribution: bfr commentedAny chances to to get this commited? I hate to have patched modules in the clients site.
Comment #11
dags CreditAttribution: dags commentedThanks! Committed.
http://drupalcode.org/project/editablefields.git/commit/3d21d4b
Comment #13
MurzAs alternative we can use this module: http://drupal.org/project/editablefields_as_link