Hi,

My goal was to rewrite an anchor tag for a Link field using views. I wanted to check if I'd ticked the external link checkbox. I wanted to capture either target="_blank" or target="" so I could rewrite Link ouputted by the view to include extra attributes in the anchor tag.

I added the link field. I tried to rewrite the field to output the [link-attribute] field. this returned nothing. Outputting the link normally showed target="_blank" in the anchor tag.

I would like the [link-attribute] token to output the attributes data from the link field database table in some format I could trim and use it in views.

Comments

ajfernandez’s picture

Hi, I have the same problem with this module. I updated the token module but the problem still continues. How can I use the [link-attributes] token to output the target and title attributes??

Thanks!

mschudders’s picture

Any updates on this topic, want to achieve the same thing !

Thanks

mschudders’s picture

Issue summary: View changes

Trying to clarify my ticket

badrange’s picture

Issue summary: View changes

I think this issue might be caused by this Link issue:
https://www.drupal.org/node/1508614

knalstaaf’s picture

Status: Active » Closed (duplicate)
Related issues: +#1508614: Expose attributes properly to Views