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.
Instead of using the "Edit" text on boxes, we could take advantage of Contextual Links being part of Drupal core.
Comment | File | Size | Author |
---|---|---|---|
#4 | hide-edit-link-panels-1093550-4.patch | 1.13 KB | acrollet |
#1 | 1093550.patch | 623 bytes | e2thex |
Comments
Comment #1
e2thex CreditAttribution: e2thex commentedSo I looked in to doing something with contextual links but it is a bit hairy, and might be a bit restrictive for what boxes does. but this patch is a js fix the replace the block configure contextual link with the boxes edit link
Comment #2
febbraro CreditAttribution: febbraro commentedCommitted, thanks!
Comment #3
Alan D. CreditAttribution: Alan D. commentedPanels will create a conceptual link for the box, but without full control of the html, it may be hard to determine if you have this link or not. This works on our installation:
Comment #4
acrollet CreditAttribution: acrollet commentedWorks for me, thanks! I've attached the code in #3 as a patch. This also represents a work-around for #1120782: Inline editing not working inside a panel.
Comment #5
tirdadc CreditAttribution: tirdadc commentedCommitted, but leaving this open as it might still need to be done the right way as far as the core issue goes instead of relying on a workaround.
Comment #6
tirdadc CreditAttribution: tirdadc commentedComment #8
Hydra CreditAttribution: Hydra commentedInteresting, if you don't have permission to configure blocks, youre not able to use the contextual links! It might be the case, where you dont want your customer to have access to the block's configuration page and all blocks, that aren't boxes, but you still want the "edit box" link to appear as contextual link.
Comment #9
BWPanda CreditAttribution: BWPanda commentedI agree with #8 - you shouldn't need the 'Administer blocks' permission just to have the Boxes 'edit' link appear in Contextual Links.
This still needs work.
Comment #10
Elijah LynnAgree too, this is an odd permission to give for that.
Comment #11
minneapolisdan CreditAttribution: minneapolisdan commentedLooks like this is a pretty old issue, but no one has solved yet? If anyone has solved it, please share.
Comment #12
rooby CreditAttribution: rooby commentedPutting this back to its previous status because there is another issue already with a patch for the permission issue.
See #1458570: "Edit boxes" permission is not enough for editing box content
Comment #13
jwilson3For anyone interested, this patch (and/or latest dev release) will work much more smoothly if you also apply #1846570: Saving after edit in separate page brings you to the block page. ;)
Comment #15
PasqualleIf the Contextual Links module is disabled, then there is no edit link on the boxes inside panels.
Comment #16
rooby CreditAttribution: rooby commentedThis issue was closed over a year ago.
I think you should open a new issue.
You can reference this one if it is relevant.
Comment #17
Alan D. CreditAttribution: Alan D. commentedagreed ;)
Comment #18
Pasqualle#2408507: Boxes in panels are without "Edit box" link