Tacking onto #1572202: IPE changes aren't shown after second save without page refresh. It seems to be the same problem, but menus (menu blocks, menu trees) are the ones still disappearing.
Problem/Motivation
Menus disappear on any number of IPE saves, or layout changes.
Proposed resolution
Workaround: page refresh.
Patch to keep menus present.
NOTE: may be a Panels issue?
| Comment | File | Size | Author |
|---|---|---|---|
| page-refresh.png | 107 KB | jeremiahtre.in | |
| post-save.png | 83.49 KB | jeremiahtre.in | |
| edit.png | 111.02 KB | jeremiahtre.in | |
| pre-edit.png | 99.14 KB | jeremiahtre.in |
Comments
Comment #1
jeremiahtre.in commentedUpdate: this only seems to happen for panelized menu trees where the node is a part of the active trail. In other words, the page's menu entry is within the menu being output. Try with a menu of which the page has no part, and the menu remains.
Comment #2
merlinofchaos commentedThis may ultimately not really be fixable.
IPE performs a content re-render when completing; if the content is looking at the active trail, that's going to be different during an AJAX operation, unfortunately, and there is likely nothing that can be done about it.
Comment #3
Olivier Beerens commentedVery annoying bug when you use menu_block with main menu to have Primary and Secondary links... because the page's menu entry will always be part of the menu being outputed.
Comment #4
adamdicarlo commentedWhat about faking $_GET['q'] to the path of the page being edited during the Ajax request?
Comment #5
damienmckennaComment #6
damienmckennaMight it be worthwhile to just cause IPE to reload the page after saving?
Comment #7
kenorb commentedComment #8
joelstein commentedSee #2824874-2: Fake path for better context when rendering panes with IPE which fakes the path to provide better context when rendering panes.