It would be great to extend the views field with an replacement token which just contains the url of the rules link action, so it can be used to wrap images in that link.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fubhy’s picture

Patch attached.

fubhy’s picture

Sorry, forgot the strtr() for the views replacement tokens in the previews patch.

fubhy’s picture

Status: Active » Needs review
Grienauer’s picture

Works fine! thx much!

sepgil’s picture

Status: Needs review » Fixed

Thx for the patch, I've committed it.

Glenmoore’s picture

Hi I have a Views Php field in a block that uses a piece of html to display an image. It would be great if I could have this image execute the Actions attached to the Rules Link and I thought this patch was the answer. I have applied it but I still dont see anything new in the Replacement Patterns section. The only token for the Rules Link there links to the page input originally when the link was set up.
Am I doing something wrong?
Thanks

fubhy’s picture

It's the same views field but it has more settings now. So just go into the configuration of the field and there it is.

IWasBornToWin’s picture

I didn't see any difference at all in my views setting. Am I missing something?

Glenmoore’s picture

A-ha gotcha! I was looking for a token representing the link URL but, in fact, you've included a text box "Re-write link text" which takes full html, perfect. Works great for me, thank you.

IWasBornToWin’s picture

I'm still confused. Every field in views already has a text box rewrite allowing html. I'm looking for a way to give rules link a url that can be used to send the user to the rule without a confirmation. It's easy to do with a confirmation by using standard url and tokens, but without the confirmation rules link adds a long random identifier.

Status: Fixed » Closed (fixed)

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

sepgil’s picture

- wrong issue -