Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tedbow created an issue. See original summary.

tedbow’s picture

Status: Needs review » Needs work

@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?

josebc’s picture

@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"

tedbow’s picture

@tedbow, I'm currently using outside in with entityqueue

Do 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"

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

Title: Allow links to use Edit mode without the user having "administer blocks" permissions » Make Settings tray work with other things besides "Configure block" on blocks
Category: Task » Feature request
Status: Needs work » Postponed

See #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.

Wim Leers’s picture

Title: Make Settings tray work with other things besides "Configure block" on blocks » Make Settings tray work with other things besides "Quick Edit" on blocks
Issue summary: View changes

#2822969: Allow non-contextual links to trigger Settings Tray "Edit" mode only makes sense if we do this. Closed as duplicate.

IS updated.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

tedbow’s picture

Component: outside_in.module » settings_tray.module

Changing to new settings_tray.module component. @drpal thanks for script help! :)

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

tedbow’s picture

Status: Postponed » Closed (works as designed)

RE #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