Not sure if this belongs under views_ui.module or views.module. Here is the problem:

Views "Global: Contextual Links" Field not visible.

Steps to replicate:

Create a View of Fields
Add a Title.
Add the "Content: Link to edit Content" Field.
Add the "Global: Contextual Links" Field, choose the above field.
Click Apply button.

dialog box with settings

Result is that "Title" and "Content: Link to edit Content" Field show up, but the "Global: Contextual Links" Field does not print.

<div class="contextual-region views-row">
  <div class="views-field views-field-title"><span class="field-content"><a href="/blog/i-love-cats" hreflang="en">I love cats</a></span></div>
  <div class="views-field views-field-edit-node"><span class="field-content"><a href="/node/187/edit" hreflang="en">edit</a></span>
  </div>
</div>

Work on this has moved to #2532200: Adding contextual links via Views fields does not work

Comments

joelhsmith created an issue. See original summary.

abarrio’s picture

Assigned: Unassigned » abarrio

I have reproduced it on 8.4.x version too and I'm going to try it.

lendude’s picture

Status: Active » Closed (duplicate)

Thanks for the report.

This is a duplicate of #2532200: Adding contextual links via Views fields does not work. 'Contextual Links' field is so broken it's not even funny anymore. I recommend the 'Dropbutton' global field as a working alternative.

joelhsmith’s picture

Wow, its been busted for 1 year and 5 months. @Lendude Thanks for suggesting an alternative. Can you elaborate on how to use 'Dropbutton' as an alternative.

lendude’s picture

Wow, its been busted for 1 year and 5 months

@joelhsmith it's been busted for way longer then that I suspect, that's just when somebody bothered to report it :)

As to the how to, the contextual links field was just a way to collect some links in one field and theme them as a 'contextual link'. The dropbutton does the same thing, but themed as a dropbutton.

Just try the Dropbutton field, it should be in your field list.....it's what is used on the default content view to render the edit/delete links

vedeem’s picture

Version: 8.3.2 » 10.6.x-dev
Status: Closed (duplicate) » Active

Still not working on drupal 10 !

quietone’s picture

Assigned: abarrio » Unassigned
Status: Active » Postponed (maintainer needs more info)

@vedeem, The work to fix this is not happening here, it is over in #2878136: Views "Global: Contextual Links" Field not visible. The decision to mark this as a duplicate was made the Views subsystem maintainer. Have you discovered something to change that assessment?

quietone’s picture

Version: 10.6.x-dev » 8.3.x-dev
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (duplicate)

I know it has only been a short while but I am restoring the version and status set by the views maintainer.

Work on this has moved to #2532200: Adding contextual links via Views fields does not work

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.