Problem/Motivation
If it is known which entity needs to be edited, right now, we need to go through the list to find that entity and click on its edit button which is time consuming.
Proposed resolution
Adding the ability to reference an entity and auto open its edit form will speed the editing process.
Remaining tasks
- The patch needs to be created
- The patch needs to be reviewed
- The patch needs to be tested
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2637880_7.patch | 2.48 KB | ghost of drupal past |
Comments
Comment #2
bojanz commentedSorry for the delay in responding to this, we've been busy refactoring and cleaning up the codebase.
If I understood correctly, you want the ability to specify a reference in the URL of the add form (node/add/page?article=12), have IEF pick up that value, and auto open the edit form?
Comment #3
benjy commentedI was able to make the first part of this work with a defaultValueCallback on the parent ER field that looks like this:
However, I wasn't able to make IEF default to open the form with the default values.
Comment #4
kenton.r commentedThis is what I am needing to do as well. Prepopulate is working on a being able to preselect the reference #3029328. But how would you have it auto open the edit form?
Comment #5
ghost of drupal pastI have added a simple helper method which allows
/node/90010/edit?ief_open[]=paragraph:616562&ief_open[]=paragraph:616558style URLs to work. I immediately use it in this patch but I also have anInlineParagraphsWidgetpatch which changesif ($default_edit_mode == 'open') {toif (InlineEntityFormBase::entityIsOpenFromQuery($paragraphs_entity, $form_state) || $default_edit_mode == 'open') {and now the children of those widgets open too.I believe this is the same as
inline_entity_form_open_row_formsettingeditand so subsequent button presses will behave correctly / same.Comment #6
ghost of drupal pastOne more thing: let's make it possible to scroll to the opened form.
Comment #7
ghost of drupal pastReroll.
Comment #9
podaroktnx
Comment #11
geek-merlinBulk reopen.
Comment #12
geek-merlinReview: I like this a lot. Needs a test though.