Loading...
 
Skip to main content

External link don’t open in a new tab/window when in a template called by a trackerlist plugin

Status
Closed
Subject
External link don’t open in a new tab/window when in a template called by a trackerlist plugin
Version
15.x
16.x
Category
  • Error
Feature
Wiki Plugin (extends basic syntax)
Wiki Syntax (text area, parser, external wiki, etc)
Resolution status
Out of Date
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

At : tiki-admin.php?page=textarea "Open external links in new window" is enable.

So all the following create a link that will open in a new-tab or new window;

Copy to clipboard
[http://www.u2.com|U2]

U2

As well as:

Copy to clipboard
[http://www.u2.com|u2|_blank]

u2

As well as:

Copy to clipboard
{DIV(class="external_link")}[http://u2.com|{img type="src" src="https://dev.tiki.org/img/icons/large/mytiki.gif" height="32" width="32"}|_blank]{DIV}


However if I use the last one in a template called by a trackerlist plugin, it is not working.
Trying to set the link within the img plugin doesn’t work neither.

Check instance.

Workaround

Not a fix but a workaround;

Add this (use your own css selector if needed) line under thetrackerlist:

Copy to clipboard
{JQ()}$(". external_link > a").attr("target", "_blank");{JQ}
Importance
7
Easy to solve?
9
Priority
63
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6100
Created
Friday 02 September, 2016 07:25:33 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 11 January, 2017 14:45:07 UTC


Show PHP error messages