I have added to my view some rules links with some core node links such as delete and edit.
After them I have added global field called Contextual Links (which was commited in the last version of Views module).
but the Rules Link in the contextual links displays as non-proccessed HTML.

I have changed implementation of the Rules Links field for views to be similar to the node links Delete and Edit. They hide Path field in the "Output this field as a link" section and use this option to insert link URL there.

CommentFileSizeAuthor
#7 1508244-7.patch1.76 KBAnonymous (not verified)
#6 1508244-6.patch1.69 KBAnonymous (not verified)
#3 rules_link_in_view_example.zip3.83 KBberdyshev
rules_link-support_of_conditional_links.patch1.23 KBberdyshev
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mitchell’s picture

Status: Active » Needs review

Could you please provide an example view for testing?

sepgil’s picture

Status: Needs review » Needs work
berdyshev’s picture

Status: Needs work » Needs review
FileSize
3.83 KB

I've attached the feature with views, rules and rules_link configuration. You need to have all of these modules installed and content type called Article should exist on your site.
This view will add new tab in Main Menu called Articles, when you will see contextual links for each row of view (you need to create some articles). In the contextual menu of each row you will see only two links (Edit and Delete) without patch, and three links (Edit, Delete and Unpublish) with applied patch.

Chipie’s picture

Issue summary: View changes

BerdArt, have you found a solution?

berdyshev’s picture

Chipie, I have attached patch in the issue, it solves the problem.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
1.69 KB

I had to re-roll this patch for latest dev-x.

Solution works. Also solves #2257407: html doesn't render on views rules link

Anonymous’s picture

FileSize
1.76 KB
sepgil’s picture

Status: Reviewed & tested by the community » Fixed

Thx for this great patch, I've committed it.

  • sepgil committed 6e900d4 on 7.x-1.x authored by morningtime
    Issue #1508244 by berdyshev, morningtime: Rules links in views become...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

argiepiano’s picture

Just a quick note about this patch. It fixes the issue with contextual links, but it creates another problem. I'm using an EVA field within a View. This EVA field is another View that contains Rules Links. The Rules Links in this EVA field lose their "?destination" segment at the end of the URL after the patch has been applied. I haven't had time to see why - I thought I'd report this issue. I reversed the patch and the Rules Link in the EVA field now works as expected (redirecting to the original view after execution).