Loading...
 
Features / Usability

Features / Usability


Help with opening links in new window

posts: 4 Greece

Hello everybody … I hope someone can help with this one …

I use trackerfilter or plugin list to collect some results that meet some conditions … these results are displayed in a table and basically they are the users that meet some criteria (trackers) …
After the search is done and I have the users that meet the criteria in a table, I want to see more details for each user so I wrote showlinks=”y” to open a template for more details …
The problem is that when I hit the user’s link the template is opening on the same browser window … I want the links on the results table to open in a new window or a popup box …

(I made it with the developers tools by adding target=_blank on the link but I cannot find the php file to actually add the code)

Any clues ???

posts: 126890 United Kingdom

P.S. in a plugin list you would do something like:

Copy to clipboard
{FORMAT(name="link")}[item{display name="object_id"}|{display name="title"}|_blank]{FORMAT}
posts: 4 Greece

Thank you for your time Jonny!
The first comment I don't know hou to apply it because the links are results of a trackerfilter/plugin list, that are displayed in a table so i cannot write some code there ...

I tried your second suggestion with plugin list ... but didn't work ...
In my case the tracker permanent name (which i want to make it a link that opens in a new window) is "registrationemail_2678" ... so following your suggestion i wrote:

Copy to clipboard
{FORMAT(name="registrationemail_2678")}[item{display name="object_id"}|{display name="tracker_field_registrationemail_2678"}|_blank]{FORMAT}


Also tried the following using "target" instead "_blank" ... still with no luck ...

Copy to clipboard
{FORMAT(name="registrationemail_2678")}[item{display name="object_id"}|{display name="tracker_field_registrationemail_2678"}|target]{FORMAT}


The link is opening but in the same window ...
(The "open external links in new window" is checked)

Any other ideas???