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.
If I click to add a new pane to a panel > then select "Menus" on the left from the Panels dialog > then choose "MenuName Menu Tree" > save the panel. Note "MenuName" can be any of your menu names.
The menu displays correctly, but there is no contextual links cog. The code for the contextual links isn't printed in the html.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2315201-contextual-links-missing-on-ctools-content.patch | 2.3 KB | Dave Reid |
#2 | contextual_links-2315201-2.patch | 1.76 KB | alexshipilov |
Comments
Comment #1
zmove CreditAttribution: zmove commentedI can confirm the problem.
Comment #2
alexshipilov CreditAttribution: alexshipilov commentedI created the patch for this issues. Apply it or try to use that code in your custom module or in template.php .
Comment #3
alexshipilov CreditAttribution: alexshipilov commentedComment #4
gmclelland CreditAttribution: gmclelland commentedWorks for me. Thank you
Comment #5
Dave ReidHow does this relate to #2400145: add "Edit menu links" to the Panels pane links dropdown menu?
Comment #6
gmclelland CreditAttribution: gmclelland commented@Dave Reid - That issue provides links when using the Panels standard editor(when editing the page on the backend).
The patch in this issue provides the missing contextual links on the frontend when simply viewing the webpage.
Comment #7
Dave ReidOk let's try this instead. There's no reason to add a new hook, but just re-use existing stuff instead.
Comment #8
Dave ReidConfirmed #7 works and doesn't regress the existing block contextual links. Committed to 7.x-2.x.