Closed (won't fix)
Project:
Panels
Version:
6.x-3.7
Component:
In-Place Editor (IPE)
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2010 at 00:31 UTC
Updated:
21 Nov 2011 at 07:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
jonskulski commentedHere you go.
Comment #2
jonskulski commentedActually, this patch is preventing changes to be saved via the IPE.http://drupal.org/node/887444.
We are seeing new content being added without the draghandles visible (though they are present in the markup).
Looking into this
Comment #3
jonskulski commentedlooks as though cache_key isn't being set, which means the topParent isn't found. This is due to the parent not being rendered before we tried to access the cache_key. parent::render() sets the cache_key.
Comment #4
jonskulski commentedOkay got it.
I was right, I was trying to get the cache_key before generating it thus the IPE was convinced it had nothing to do. Here is a working patch.
Comment #5
jonskulski commentedWe should conditionally render the controller. Only render it if the user can save and make the changes to that specific panel. Right now (and in 3.7, I believe) it is rendered for everyone.
Comment #6
jonskulski commentedhttp://drupal.org/node/871730 is related
Comment #7
jonskulski commentedHere is one that uses the 'use page manager' permission for now.
We obviously need a specific IPE permission since the idea is that a smaller subset of site editors would use the IPE and page manager would be necessarily more priveleged since they can change things like variants, selection rules, etc.
Comment #8
joshk commentedHere's a slight tweak. I think "use panels in place editing" is probably the better perm. This is what the IPE module uses as the permission on the renderer itself. :)
Comment #9
jonskulski commentedMuch better, thanks joshk
I removed a couple TODO comment relating to that permission.
Comment #10
merlinofchaos commentedWith the patch in #9 applied, the "Customize this page" button does not actually function.
Comment #11
Letharion commentedClosing issue due to lack of activity. Feel free to re-open if you have an update to the patch.