Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

jump.cgi opens no new browser window

Quote Reply
jump.cgi opens no new browser window
The selected links appears in the same
browser window (rel. 2.0). Using rel. 1.11
I got a new browser window for each
selected link. Until now I found no
configuration option to change this behaviour.

Best regards
Quote Reply
Re: jump.cgi opens no new browser window In reply to
If you are using templates, go to the template file, link.html, and add target="_blank" to the link. It will then look like:

Quote:
<ul><li><a class="link" target="_blank" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

If you are not using templates, then you need to modify the code in sub site_html_link of site_html.pl to do the same type of thing.

Alternatively, you can add the following tag right below the <body> tag in category.html or sub site_html_category (site_html.pl) which will do the same thing:

Quote:
<base target="_blank">

That way, everything will open in a new window without having to put the target in each link. However, that will also do the same thing for the other links (such as your menu) unless you specifically include a target="_top" for those links. In other words, the <base> tag will act like a default setting and you have to specify the exception when you need to.

I hope this helps.

[This message has been edited by Bobsie (edited May 21, 1999).]
Quote Reply
Re: jump.cgi opens no new browser window In reply to
Great. Works as described. Have many thanks.

Rainer Haessner