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.
AFAIK, contextual links for each row on views only appears if using the 'node' row style. I managed to create a solution for 'fields' using theme only, but I'd suggest another approach, more views-like: adding a field called "Node: Contextual Links".
I'm posting a patch with a tested implementation. Although the theming must work 2 issues:
- The views links get over the node's
- All links show up at the same time when hovering only one item.
I'll blog about the theme solution and post here later.
Comment | File | Size | Author |
---|---|---|---|
contextual_views_field.patch | 3.93 KB | franz |
Comments
Comment #1
jeffschulerThis works nicely, except for two relatively major issues you mention.
It looks like D7 and Contextual 2.x solve these issues by only displaying the cog icon; not outlining the row until the icon is moused-over (and not displaying Edit/Delete until it's clicked.)
Because of this, it doesn't really matter that all of a view's rows -- and the encompassing view -- show the context menu at the same time.
Maybe the solution here is to move your changes to 2.x?
Comment #2
steinmb CreditAttribution: steinmb as a volunteer commented