Hi, would be nice to add the option for adding the attribute "target" to the link.
I'll try to make a patch.

Comments

esolitos’s picture

StatusFileSize
new6.79 KB

There it is the patch.
(It's my first time, so please be gentle :D )

esolitos’s picture

Status: Active » Needs review
esolitos’s picture

StatusFileSize
new7.14 KB

Sorry, here it is a better patch.
Previous patch did brakes the "Preview" option, this one has still some issues with it, but it doesn't brake anything (as far as i know).

Status: Needs review » Needs work

The last submitted patch, url_field-target-added-issue1914126.patch, failed testing.

esolitos’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, url_field-target-added-issue1914126.patch, failed testing.

ilceia’s picture

I loved this module, but I need a target attribute on it real bad....Is there a very very easy way to do this? I know almost nothing

raphael apard’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new1.5 KB

Just add : Add target="_blank" to all links on field formatter settings form.

spleshka’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed, works for me, thanks!

damienmckenna’s picture

Component: Code » User interface
Assigned: esolitos » Unassigned
dbachko’s picture

StatusFileSize
new1.43 KB

Add optional target attribute to all links with options('_self', '_blank', '_parent', '_top') to select from.

damienmckenna’s picture

Status: Reviewed & tested by the community » Needs review

Now we need the maintainer to weight in on which approach would be better. Also, a new patch means that the status goes back to "needs review".

kolafson’s picture

#11 works for me

jcnventura’s picture

Status: Needs review » Reviewed & tested by the community

#2366021: Open link in a new tab or window implemented this feature in virtually the same exact code, but restricted only to "_blank".

jcnventura’s picture