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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | rules-link-rewrite-title.patch | 2.62 KB | fubhy |
#1 | rules-link-rewrite-title.patch | 2.58 KB | fubhy |
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedPatch attached.
Comment #2
fubhy CreditAttribution: fubhy commentedSorry, forgot the strtr() for the views replacement tokens in the previews patch.
Comment #3
fubhy CreditAttribution: fubhy commentedComment #4
GrienauerWorks fine! thx much!
Comment #5
sepgil CreditAttribution: sepgil commentedThx for the patch, I've committed it.
Comment #6
Glenmoore CreditAttribution: Glenmoore commentedHi 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
Comment #7
fubhy CreditAttribution: fubhy commentedIt's the same views field but it has more settings now. So just go into the configuration of the field and there it is.
Comment #8
IWasBornToWin CreditAttribution: IWasBornToWin commentedI didn't see any difference at all in my views setting. Am I missing something?
Comment #9
Glenmoore CreditAttribution: Glenmoore commentedA-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.
Comment #10
IWasBornToWin CreditAttribution: IWasBornToWin commentedI'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.
Comment #12
sepgil CreditAttribution: sepgil commented- wrong issue -