Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently Settings Tray only works for:
- blocks
- via a contextual link (only
outside_in.block_configure
, even)
Use cases:
Proposed resolution
TBD
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-allow_editmode_without_blocks_permission-2822965-3.patch | 3.59 KB | josebc |
Comments
Comment #2
josebc CreditAttribution: josebc at Vardot commentedPatch with new permission and changed the code in isApplicable to use it
Comment #3
josebc CreditAttribution: josebc at Vardot commentedoops forgot tests
Comment #5
josebc CreditAttribution: josebc at Vardot commentedComment #6
tedbow@josebc sorry maybe I was wrong in how I framed the problem.
I am not sure on the solution here but I don't think adding another permission will make things clearer. If a role has permission to "Administer Blocks" it would not be clear that if you enable this module that you then have to give another permission just to let them edit blocks with a different link.
Not sure of the solution. Right now "Edit mode" is actually tied to blocks. What would "Edit mode" mean if it weren't about editing blocks?
Comment #8
josebc CreditAttribution: josebc at Vardot commented@tedbow, I'm currently using outside in with entityqueue so yes i agree that this should not be related to blocks since this is only a part of what this module should cover, what i was trying to do is making something similar to contextual links wich actually defines a permission of its own.
Any suggestions are welcomed here since we cannot keep it using the "administer blocks"
Comment #9
tedbowDo you mean you are using the tray or actual edit mode? How are you using it?
Have you seen this issue? #2784443: Move off-canvas functionality from Settings tray module into drupal.dialog.ajax library so that other modules can use it
You should still be able to use the tray even without "administrer blocks"
Comment #11
Wim LeersComment #12
Wim LeersSee #2762505: Introduce "outside in" quick edit pattern to core and https://www.drupal.org/core/experimental — we're working to make Settings Tray stable by 8.4.0. For now, Settings Tray is designed to work with Blocks only. Therefore this is a feature request we'll consider in the future given sufficient demand.
In the mean time, #2784443: Move off-canvas functionality from Settings tray module into drupal.dialog.ajax library so that other modules can use it should land very soon, and that will allow contrib modules to provide something similar until Settings Tray's capabilities/APIs are expanded.
Comment #13
Wim Leers#2822969: Allow non-contextual links to trigger Settings Tray "Edit" mode only makes sense if we do this. Closed as duplicate.
IS updated.
Comment #15
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)
Comment #17
tedbowRE #8 @josebc I think what you want is actually the off-canvas dialog.
@see New Off-Canvas dialog tray now available
you don't need the actual settings tray module for this