Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Open only some of the links in a new window

Quote Reply
Open only some of the links in a new window
Hello!
I know how to make all the links open in a new window,
But how can I make only some of the links to be open in a new window.

P.S.
I also want the window to be without the toolbars or the bottons.
Quote Reply
Re: [eran_diburim] Open only some of the links in a new window In reply to
First of all, javascript windows have been discussed before in the Links 2.0 Customization Forum.

Secondly, to only open certain links in a new window, you will need to do the following:

1) Add a field in the links.def file called something like isNewWindow. Search for adding fields in the Links 2.0 forums. This field should be a Yes/No field.

2) Then update your database file (links.db) using the automated upgrade.pl file, which is referenced many times in the Links 2.0 Customization Forum.

3) Then add the following codes in the link.html file:

Code:

<%if isNewWindow%>
LINK WITH NEW WINDOW CODES
<%endif%>
<%ifnot isNewWindow%>
LINK WITH NO NEW WINDOW CODES
<%endif%>


Good luck!
========================================
Buh Bye!

Cheers,
Me