Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Category.html - Open link in new window

Quote Reply
Category.html - Open link in new window
When I click on a link on my category.html page, the link opens within the main frame vs. a new window. Is there a config. setting to open links in a new window? (i.e. target="_blank").

TIA davidc
Quote Reply
Re: Category.html - Open link in new window In reply to
I am a bit confused...Do you mean in the admin.cgi script or the Category pages in your directory?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Category.html - Open link in new window In reply to
There is a file called "category.html" that is used to display the links (1-line summary) when you click on a category on your links page (index.htm). Since my index.htm page is set up in a frame, links that are clicked on from the category.html page will display the requested link site also within a frame. I need to be able to modify category.html so that the linked website opens in a new window. The html fragment that needs modification is:
==============================
</table><font face="Arial,Helvetica" size="-1">
<%links%>
<%endif%>
====================================
Somehow I need to be able to insert: target="_blank" so that the links open in their own window.
Quote Reply
Re: Category.html - Open link in new window In reply to
Okay...so it is the LINKS in the Category pages you are referring to, right?

Then all you need to do (as discussed MANY times in these forums) is to add the following attribute:

Code:
target="_newwin"

to the link in your link.html file.

Like the following:

Code:
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_newwin"><%Title%></a>

Why use _newwin?? Search the LINKS Installation Forum...I posted a lengthy explanation WHY you should not use _blank.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Category.html - Open link in new window In reply to
Eliot,

Sorry for not thinking to do a search 1st - the obvious seems to elude me <g>.
Quote Reply
Re: Category.html - Open link in new window In reply to
It's okay...but many answers to questions are in the forums.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.