Hi

I'm trying to assign target=_blank to an external link in a View but I'm at a loss on how to do it. Not sure if I have to add a snippet of code to one of the template files. Any suggestions? It's probably something simple that I'm overlooking...

Comments

vm’s picture

jmurp’s picture

I tried that one before I posted, no change. Even when I added external links extra.

cfox612’s picture

How is your view setup? Are you using fields?

jmurp’s picture

Yes there are fields for this view, including one for Links (Content:Link).

cfox612’s picture

You should be able to rewrite the output of the link, which would look something like this:

<a href="[field_link-url]" target="_blank">[field_link-title]</a>

Just take a look at the replacement patterns.