Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Links in a new window

Quote Reply
Links in a new window
My site is running with a top frame, and when I click on a link, it opens it, with the top frame still in.
How can I get links SQL to make all the links to open in a new window, or in the same window removing the top frame?

To get an idea you can have a look at the test site at www.igloo.gl
We will open it up in english as well...

Pele
btw we are NOT using SQL on the site as it look now....

Quote Reply
Re: Links in a new window In reply to
You have to set the target to _top or to _blank



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Links in a new window In reply to
I´m new at this, so what do I change? E.g. jump.pl, links.pm or which. And which line??

Thx

Pele

Quote Reply
Re: Links in a new window In reply to
It depends on how your site is set up with the frames

Maybe you should cruise over to the Netscape site and take the little frames tutorial over there. It explains all this, and it's not really part of links.

You add a target=_top or target=_bottom or a target=_my_own_frame_name to a link (in the <A HREF....> tag). _top, _bottom, and several others are "reserved" and have specific meanings.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Links in a new window In reply to
Hi

I work with Pele on this one, and unfortunately he is not in today, so i guess i'm going to take it from here....

We have a Top-frame named "top" and a Main frame named "main"
This is our problem: On the page we want to show links in, we have other links (internal) where we want to keep our top frame, so therefore a base target line in the top is simply not enough.
I was hoping there where som command you could set into the template in order for links to automaticly set a target for the links it generates.


Quote Reply
Re: Links in a new window In reply to
In link.html, set target="_blank" in the link href tag, and every link built by Links will open in a new window when clicked on. That method will work whether or not you are using frames.

Dan

Quote Reply
Re: Links in a new window In reply to
Perfect...... Just what i was looking for.

Just couldn't find it in the templates, guess i didn't look hard enough..... ;-))

Quote Reply
Re: Links in a new window In reply to
Yup just got back from flying. Just what we needed.
Thank a lot

Pele