Hi,

If you select a field to display and set the 'Output this field as a link' properties you can't set the target (like _blank, _parent or an iframe's name). I made a small patch if you find it useful. I need you to check the patch whether it is secure and fit in the entire code base.

It gives you a fifth textfield where you can write the target in.

Thanks,
Peter

CommentFileSizeAuthor
views_6_2_link_target.patch1.9 KBitarato

Comments

merlinofchaos’s picture

Status: Active » Needs review
merlinofchaos’s picture

Status: Needs review » Fixed

Committed to 2.x and 3.x branches. Thanks!

itarato’s picture

Thank you!

JirkaRybka’s picture

'target' => array('default' => '', 'translatable' => TRUE),

I don't understand the flow here enough, to re-open this issue, but I have a suspicion: Should it really be 'translatable'? It's supposed to be a HTML attribute, similar to above-seen 'link_class' => array('default' => ''),. Does this patch mean, that we're going to get a string "_blank" for localization, somewhere? (Maybe I'm just missing something.)

Status: Fixed » Closed (fixed)

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