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.

CommentFileSizeAuthor
contextual_views_field.patch3.93 KBfranz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeffschuler’s picture

Status: Active » Needs work

This 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?

steinmb’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)