Closed (outdated)
Project:
Panels
Version:
7.x-3.x-dev
Component:
In-Place Editor (IPE)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2012 at 08:47 UTC
Updated:
13 Jul 2026 at 16:44 UTC
Jump to comment: Most recent
Comments
Comment #1
emattias commentedComment #2
merlinofchaos commentedPanels already supports locking regions. Do you need more than it currently allows?
Comment #3
Letharion commentedComment #4
emattias commentedWhat do you mean by locking regions? Is it possible to do this(and if so, could you please hint to how):
When an editor clicks "Customize page":
My thinking is to have a "Locking" dropdown header when you press the cogwheel for the region. Like you have for the cogwheel menu for panes.
Comment #5
emattias commentedComment #6
emattias commentedDo you mean locking panes in a region? Because that's not what we need.
We need to be able to lock the region from IPE completly. So on the same panel when you press "Customize page", some regions get the IPE toolbar and you can add/remove/re-order panes and other regions render like they did before pressing "Customize page". So the locked regions look and behave like they aren't "IPE enabled".
Semantic/UX question: Should it be called that you "lock" the region or that you select the renderer for that region? (Like you select style, etc.)
Comment #7
emattias commentedWe don't have time to create a patch for this atm, so I created a Panels Selective IPE Sandbox that provides a new pipeline which will only "IPE Enable" specified regions (which can be set through a db variable).
It's has no extra ui that is talked about in this issue, but it does make it possible to have only part of the page be IPE editable.
Comment #7.0
emattias commentedClarify
Comment #8
pieterdcThanks for the example code in your sandbox, emattias.
I was looking for this and I'm going to implement it in my own renderer.
Comment #9
netsensei commentedThis looks great.
I've been looking at a similar issue recently: https://drupal.org/sandbox/netsensei/2152563
The take away here is that IPE access can't be controlled on a granular level atm. It's all or nothing. Trying to solve this isn't going to be easy since you'll look at catering a lot of use cases. i.e. access on a region and/or panel level based on role, taxonomy access, organic group, etc. It's basically a pandora's box.
First thought on how to approach it: hook IPE access checks up with the plugin API. That would make it a lot easier to implement your own plugins and hook up with other access type systems.
Either we patch IPE display renderer to do this or we create a 3rd party module based on ematthias' work.
Comment #10
PI_Ron commentedThere is a real need for more granular IPE permissions. The IPE is a fantastic interface but giving a site manager access to change every pane on a page through the IPE is not always a good option. It would be great to be able to change role permissions for an individual pane such as 'Move', 'Edit', 'Change Style'.
Has anyone found a solution for more granular IPE permissions?
Comment #11
joel_osc commentedCheckout : https://www.drupal.org/sandbox/emattias/1904450... awesome little module I have running on a few live sites now.
Comment #12
PI_Ron commentedThanks @joel_osc, there is also this patch which I've just redone that can globally turn off add/remove/settings/styles buttons per role for the IPE:
https://www.drupal.org/node/1699432#comment-9502413
Comment #13
aleksijohansson commentedI second this!
Comment #14
kenorb commentedComment #15
japerryDrupal 7 is no longer supported, closing.