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.
any other solutions to this for drupal 8? it seems that quick edit module in 8 core doesnt work like this. I need to let users edit only a few fields when viewing a content.
I'm afraid I doubt it can be that easy with the complete rewrite of field API and all the ajax logic. I spent couple of hours to figure out : we need to get a widget form inside a formatter. Could'nt find the right object / method to get it right. Then the ajax part should be straightforward.
Well, you can develop your own special widget I'm afraid. I tried to use AJAX Form entity and the form modes control module to do it but multiple edit entity forms on the same page do not work in D8, so I used iframes wich begins to be quite ugly (but functionnal).
For those who are interested, I have made a feature request to mimic the features of "ditable fields" with "Quick Edit": https://www.drupal.org/project/drupal/issues/2943786
Feel free to update it, as my English is very poor and I am not sure that this request is "understandable"
Comments
Comment #2
patoshi CreditAttribution: patoshi commentedany other solutions to this for drupal 8? it seems that quick edit module in 8 core doesnt work like this. I need to let users edit only a few fields when viewing a content.
Comment #3
eme CreditAttribution: eme commentedI'm afraid no. There is no such solution for now...
Comment #4
joelpittetFeel free to help port this if you'd like it in D8. You can start with drupal module upgrader.
https://www.drupal.org/project/drupalmoduleupgrader
Comment #5
eme CreditAttribution: eme commentedI'm afraid I doubt it can be that easy with the complete rewrite of field API and all the ajax logic. I spent couple of hours to figure out : we need to get a widget form inside a formatter. Could'nt find the right object / method to get it right. Then the ajax part should be straightforward.
Comment #6
patoshi CreditAttribution: patoshi commentedwhat other solutions have others come up with?
Comment #7
eme CreditAttribution: eme commentedWell, you can develop your own special widget I'm afraid. I tried to use AJAX Form entity and the form modes control module to do it but multiple edit entity forms on the same page do not work in D8, so I used iframes wich begins to be quite ugly (but functionnal).
Comment #8
playful CreditAttribution: playful commentedAny update on this or alternative solutions?
Comment #9
DuneBLFor those who are interested, I have made a feature request to mimic the features of "ditable fields" with "Quick Edit": https://www.drupal.org/project/drupal/issues/2943786
Feel free to update it, as my English is very poor and I am not sure that this request is "understandable"
Comment #10
retolist CreditAttribution: retolist commentedYou can also try the Views Entity Form Field module.
Comment #11
baikhoComment #12
gilmordHi,
I have ported this module to D8, merge request attached here:
https://www.drupal.org/project/editablefields/issues/2606016
fill free to test it and get back with a feedback
Comment #13
gilmordClosing as duplicate of the https://www.drupal.org/project/editablefields/issues/2606016