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.
In my multi-site set up, I have two sites, using different templates: one has the Edit Panel link in the local task menu, the other (Garland) doesn't have it. It's not like I have to have the link, but it does make my work much easy by having immediate access to edit the panel page.
What could I be missing here?
Comment | File | Size | Author |
---|---|---|---|
Doesn't have Ediit Panel link | 7.63 KB | deanloh | |
Has Edit Panel link | 5.69 KB | deanloh |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedIn order to get that Edit Panel link into the local tasks, CTools is playing a trick on the theming of the links. With Garland this is tricky because it is also overriding the theming for this.
For stock Garland, CTools includes a special override for Garland to fix this which may not be happening for you if you're using a copy of Garland. IN that case, I recommend looking at ctools_garland_preprocess_page() in ctools.module -- you may need to copy the change it makes to the local tasks into your theme's preprocess.
Comment #3
gmclelland CreditAttribution: gmclelland commentedNot sure why, but I have this problem with TAO sub themes. No "Edit Panel" local tasks appear.
Comment #4
gmclelland CreditAttribution: gmclelland commentedI noticed that the TAO theme uses the following in the template.php:
I tried adding this to my _preprocess_page function in my template.php, but it didn't work. Still no "Edit Panel" links
Any thoughts on how I can get this working? I opened an issue in the TAO queue, but no one has responded.
Comment #5
gmclelland CreditAttribution: gmclelland commentedGot it working in TAO with this in my template.php
Comment #7
rickmanelius CreditAttribution: rickmanelius commentedThis seems to have reappeared in D7. I have a vanilla install with some modules enabled and menu_local_tabs comes up blank. I can confirm it works on a vanilla D6 website. The tabs are missing for both default themes as well as custom themes (e.g. omega sub theme).
Comment #8
Letharion CreditAttribution: Letharion commentedI'm actually moving this back to it's old setting. If a similar problem exists in a different major version, it could very well be something else. Also, the edit panel link exists in the contextual links, so I'm not even sure it's supposed to be there in D7. Maybe it should though, but if so, please open a separate issue, and try with the stark theme.
Comment #9
merlinofchaos CreditAttribution: merlinofchaos commentedYes, we moved that to contextual links and the tabs are no longer there in D7.