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.

CommentFileSizeAuthor
#6 page2.png34.53 KBDrColossos
#6 page1.png27.66 KBDrColossos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick’s picture

Status: Active » Closed (won't fix)

Well 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.

gmclelland’s picture

@jsacksick - @DrColossos is referring to https://www.drupal.org/project/panels IPE (In Place Editor), not the https://www.drupal.org/project/ipe

jsacksick’s picture

Status: Closed (won't fix) » Active

Ok, could you describe the exact steps to be able to reproduce the issue?

DrColossos’s picture

Issue summary: View changes

I 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.

jsacksick’s picture

After 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?

DrColossos’s picture

Issue summary: View changes
FileSize
27.66 KB
34.53 KB

I'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.

jsacksick’s picture

Ok, 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 :).

oxyc’s picture