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.
I have emptied the cache several times, but for some reason the cogs for the contextual links on my view panes or view blocks are no longer visible on my panel pages in my admin pages. Do any of you know what can cause this?
Comment | File | Size | Author |
---|---|---|---|
#9 | larger browser size.png | 2.09 KB | JSCSJSCS |
#9 | missing cog for view.png | 3.3 KB | JSCSJSCS |
#9 | small browser size.png | 1.92 KB | JSCSJSCS |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThe only thing I can think of is to make sure contextual.module is enabled and that the viewer has permission to see contextual links?
Comment #2
lsolesen CreditAttribution: lsolesen commentedThe problem persists on all of my panel pages in my admin area (using Seven as admin theme). First it worked, but now it doesn't.
Seems that it is not rendered in the HTML. http://pastie.org/3490907. Here is the page and one of the views which misses its contextual links cog (using the content pane display from the view).
And an example of the view:
Comment #3
lsolesen CreditAttribution: lsolesen commentedThe views has the correct cog when I just use a block in the Drupal block system - not on a panels page.
Comment #4
lsolesen CreditAttribution: lsolesen commentedSeems that it is only on views rendered as a table. For workbench the profile view has a cog, but not the table views.
Comment #5
lsolesen CreditAttribution: lsolesen commentedAnd now magically they work again for my own custom dashboard. Though still not working in workbench.
Comment #6
azinck CreditAttribution: azinck commentedI'm seeing this, too. Looks to be a dupe of #1436354: View edit links missing from all displays except master
Comment #7
azinck CreditAttribution: azinck commentedTo be clear: I'm creating a basic views block listing a few nodes (unformatted list, rendered teaser content). If I add it to a panels page using panels I don't get contextual links to edit the view or configure the block. But if I add the same block via Context or the core block module I do get the contextual links to edit the view and the block.
I'm currently using the following versions (though I've tested it with a few different combinations):
Drupal 7.12
Panels 7.x-3.0+9-dev
Views 7.x-3.3+45-dev
Chaos tools 7.x-1.0-rc1+116-dev
Comment #8
azinck CreditAttribution: azinck commentedI should add: the problem doesn't seem to be limited to Views panes. Panels also suppresses the contextual link that lets you edit a Box when a Box is placed using Panels. Panels gives you the "configure block" contextual link instead of the "edit box" link that you get when placing the Box using Context or core block module. This is an important distinction in the case of Boxes as the "edit box" interface actually provides a different API to Box providers. I don't know all the nuances but editing a Box via the edit Box interface is important for the functionality of at least the views_boxes module and, I suspect, many other Box providers.
Comment #9
JSCSJSCS CreditAttribution: JSCSJSCS commentedI can confirm the same issue on 7.x-3.2. A view placed in a pane does not get a cog. Blocks do. In this image, I have a panel with a view in the left column and a block in the center and right column.
I can also say that if I use the Omega 12 4-4-4 layout, I cannot get to the far right edit panel cog. In a normal Panels 3-column layout the cog is available whenever I hover over any part of the layout. When using the Omega layout, the edit panel cog is still on the far right side, but it disappears as soon as the mouse leaves the left column area.
In the image below, what is not captured is the mouse position which is hovering over the left-most column, allowing the cog to edit panel to display on the far right, but no cog is available for the view in the left column.
But in any event, regardless of layout the view in the left pane does not get a cog.
Comment #10
JSCSJSCS CreditAttribution: JSCSJSCS commentedI noticed there is not any contextual links html code around the view, but lots around the blocks. Here is a typical block. Non of this contextual links class and divs are around the views pane.
Comment #11
jibranFor views when
panels-pane.tpl.php
is called$admin_links
sent bytemplate_preprocess_panels_pane
was empty. Unable to find any work around.Comment #12
aschiwi CreditAttribution: aschiwi commentedSame problem here. Concerns any panel with views panes on it, looking as uid 1, no matter what type of view.
However, we also added a panel to the admin theme and there the cogs show up just fine. I switched to Bartik and I saw at least one of the cogs. Looks like a theme problem then? Can you guys all switch to Bartik and report whether the problem goes away?
Comment #13
Kristen PolIt does appear to be a theme issue. I can see them in Bartik but not in a custom sub-navin theme (which is a sub-theme of omega).
Comment #14
Kristen PolThis might help some people: http://drupal.org/node/1542652#comment-6030908
Comment #15
Kristen PolComment #16
deanflory CreditAttribution: deanflory commentedI use an AdaptiveTheme subtheme (custom) and I'm finding that when I change the layout of a mini-panel, my "create content" contextual cogs disappear where they were visible and usable before the layout change.
The cogs on the individual blocks that are placed are visible after the layout change but do not function and only link to "#".
I'm not positive it's not another module interferring as I have quite a few enabled and having all sorts of screwy things going on after the D7.22 update, but there does seem to be a clear difference after changing the layout. I'm using AT layouts if that helps and tested it three times going from a two column to a 3 column layout with the same result of lost functionality and inability to add new content or change already placed content.
I'm doing this as user 1 so there can't be a permissions issue.
Comment #17
azinck CreditAttribution: azinck commentedIf you have the Views Content Panes (views_content) module enabled (the module's bundled with ctools) and embed views in this manner it appears the contextual links don't get added. I'm going to dig in a little deeper. Turn off that module and you can embed views exposed as blocks and all is well.
Comment #18
azinck CreditAttribution: azinck commentedIf you want to continue using Views Content Panes, then you can solve this using the patch here: #1669756: Provide a contextual link for view panes
You will have to create a Content Pane display for your view; embedding other display types won't work at this point. I'd like to investigate how to solve that problem but this works for most use-cases for now.
Comment #19
merlinofchaos CreditAttribution: merlinofchaos commentedMarking a dup based on #18, since there's a patch.
Note: I would rather not improve other display types; IMO those are 'legacy' and should not be used except where absolutely necessary.