I added a 'Panel title' pane to a panel page in the page manager. After saving the same panel page with the IPE, the 'Panel title' pane outputs nothing, except:

<!-- ctools-page-title-839b479e895e2bc96ecac092c6aa6636 -->

Comments

merlinofchaos’s picture

This is a known deficiency in the IPE right now. Certain bits of content are filled in via hook_preprocess_page and that does not get run when IPE updates a page. This is, I agree, very annoying, but it's not completely critical and so I haven't prioritized it as something to devote time to trying to resolve.

The short version of what needs to happen is that we need to run CTools' token substitution system over the output before it is sent back, but that more or less means running a theme('page') so we can get that data, and then not actually using the output because we don't actually want to theme('page') it. That makes things...tricky.

broeker’s picture

I've been trying to track this one down also and assuming this is all related; in our case we are also losing our Main Menu tree (in addition to our custom Page Title) on every "Save" after customizing a page. I originally assumed this was Panelizer/IPE bug but after disabling Panelizer I can easily duplicate using a plain Panel page and IPE:

1. Create a panel page with a simple Menu Tree block, a custom Page Title, and of course a Body field and some other random panes

2. On first save, everything appears normally

3. If you then "Customize this page" and "Save", both the Main Menu Tree and the custom Page Title disappear (other fields, such as body/custom render normally)

4. Refresh, and everything re-appears as it should

Not sure if it helps but here are the somewhat related tickets I've tracked down, some have been marked as "fixed" but seem to be dealing with the same/similar issue:

"Menus disappear when saving in IPE, page refresh needed to bring back." (Open in Panelizer queue, but not really a Panelizer issue)
http://drupal.org/node/1835456

"Panels IPE Save Drops Context Specified in Page Manager" (Marked as fixed)
http://drupal.org/node/1772834

"Panelizer default content and IPE, without page refresh panel is emptied on second save" (Marked as fixed, Panelizer queue)
http://drupal.org/node/1572202

gmclelland’s picture

DamienMcKenna’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Issue summary: View changes
Issue tags: +panelizer

Tagging for easy reference.

joelstein’s picture

See #2824874-2: Fake path for better context when rendering panes with IPE which fakes the path to provide better context when rendering panes.