- Issue created by @mortona2k
- πΊπΈUnited States mortona2k Seattle
I figured out how to do this and added a patch for Views Add Button.
The trick was to call Drupal.attachBehaviors(element) after adding the dialog attributes to the links.
I will follow up on this work in https://www.drupal.org/project/views_add_button/issues/3529307 β¨ Open in modal and reload view with ajax Active .
Currently, I'm able to set up an Add content button in the admin content view that can load the content add page, select a type, fill out the form, and refresh the view.
There is already an Add content action button on that page, which can be set up to use a dialog with Admin Dialogs. This script would be useful in the same way, to ajaxify the links on the page and allow the form to load in the modal.
https://git.drupalcode.org/project/views_add_button/-/blob/978b1d92cb8d1...