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.
We are using IPE (Panels In-Place-Editor) as well as Panelizer with Fieldable Panel Panes for customizing of our pages. Unfortunately, this already uses the CTools modal. When trying to add a an item using the widget, the content of the modal will be overridden. Unfortunately, there is no going back after this. While the widget modal works as expected in a regular site, it completely breaks when opened inside an existing modal.
This would be very nice and important feature for us.
Comment | File | Size | Author |
---|---|---|---|
#6 | page2.png | 34.53 KB | DrColossos |
#6 | page1.png | 27.66 KB | DrColossos |
Comments
Comment #1
jsacksick CreditAttribution: jsacksick commentedWell I'm not sure I can do anything about it. I went to https://www.drupal.org/project/ipe and the module is marked as obsolete. Furthermore, there's no details about the issues you're encoutering.
Comment #2
gmclelland CreditAttribution: gmclelland commented@jsacksick - @DrColossos is referring to https://www.drupal.org/project/panels IPE (In Place Editor), not the https://www.drupal.org/project/ipe
Comment #3
jsacksick CreditAttribution: jsacksick commentedOk, could you describe the exact steps to be able to reproduce the issue?
Comment #4
DrColossos CreditAttribution: DrColossos commentedI try to make it clearer from my initial report:
If you enable IPE for a specific site, you will get a modal that allows you to customize the site e.g. add content and so on. All the editing happends in this modal dialog. When you use the ER-widget, it does seem to interfere with the already opened modal since it tries to open one on its own. Instead of opening another modal, the current content (and therefore any content inside the modal like node editing) will be replaced with the widget dialog.
On sites that are not editited inside a modal, everything works fine since the widget can open a new modal that allows the selection of the references. But with an existing modal, it breaks.
Comment #5
jsacksick CreditAttribution: jsacksick commentedAfter enabling IPE, you need to create a panel with a variant for the node add/edit form? When I'm doing that it's just modifying the form with the fields I added. Is there anything else I need to do to use a modal?
Comment #6
DrColossos CreditAttribution: DrColossos commentedI'm not quite sure, it's quite some time ago and since the widget didn't work and we had no time to look further into the issue, it's hard for me to remember. The pages also "Panelizer" and "fieldable panel panes". I completely fogot to mention that, sorry for that. I think "fieldable panel panes" won't make a difference but "panelizer" actually does the modal magic if I remember correctly. In order to get the modal, you need to activate the panelizer for a certain node type.
I attached two screenshots which should equal to what you see after using the panelizer. On the first (page1.png), you should see the areas where you can add content, on the second (page2.png) is the modal that opened. When you navigate inside the modal to a form that has the widget attached, the problem occures.
I hope that made it clearer. Sorry for forgetting the Panelizer thing.
Comment #7
jsacksick CreditAttribution: jsacksick commentedOk, I managed to reproduce the issue using Fieldable Panels Panes, I create a new "fieldable panels panes" and added an Entity reference field with the widget configured on it.
The modal content was replaced and there's no way to go back to the form... It seems to be a tricky problem to solve, feel free to post a patch for it if you're up to :).
Comment #8
oxyc CreditAttribution: oxyc as a volunteer commentedRelated to
- https://www.drupal.org/node/2146337
- https://www.drupal.org/node/2264187
- https://www.drupal.org/node/1470762