I'm fairly sure that this is outside of the scope of most Panels implementations, but I'd love to get some quick advice on how to handle this issue.

I have a number of pages which display more than one Panel. More specifically:
* I'm viewing node/1 in a Panelized view mode with IPE enabled.
* The node/1 page has a block in the sidebar region which is a Node Block of another Panelized node with IPE enabled.

IPE doesn't seem to function when 2 IPE-enabled panels are rendered on the same page. Two 'customize this page' bars are displayed (which is expected). When clicking one of the 'customize this page' buttons, all JS functionality appears to work (e.g., drag and drop). However, after adding new content to a Panels region and clicking
'save', three copies of the created content appear in the panels region. Upon reloading the page, I find that none of the updates have been saved.

Maybe getting this to work is a lost cause, but I have a few ideas for solutions. Namely, find a way to IPE enable one panel at a time.

Would it be possible to append a suffix on the url (e.g., #ipe-node-1) and have Panels disable IPE for all other Panels on the page. If so, what type of JS would be necessary to accomplish it? Unbinding a specific Drupal behavior? Or perhaps an alter hook would do? Any nudge in the right direction would be appreciated.

Thanks!

Comments

grasmash’s picture

After more investigation, it seems that part of the problem was caused (and fixed) by #1354572: IPE - multiple JS sort containers.

New description of issue:

* There are two 'customize this page' buttons.
* Clicking either will change every panel on page to 'edit mode', giving the appearance of being able to edit any panel.
* Only the Panel whose id corresponds with the clicked button can actually be edited.

In other words, clicking #panels-ipe-control-panelizer-node-1-default gives the appearance of being able to edit the panel that corresponds with panels-ipe-control-panelizer-node-2-default and vice versa (all AJAX functionality appears to work). However, changes are only saved if you click #panels-ipe-control-panelizer-node-1-default and actually edit node 1. If you click #panels-ipe-control-panelizer-node-1-default and edit node 2, save, then refresh, you see that no changes have been saved.

The desired functionality would be:
* The 'customize this page' buttons would say something like 'customize [entity label]'
* Clicking 'customize [entity label'] would allow editing of only that specific entity.

grasmash’s picture

Status: Active » Closed (duplicate)