Gossamer Forum
Home : Products : Links 2.0 : Discussions :

new window without templates

Quote Reply
new window without templates
Hi,
I´m just editing my 2.0 Design by changing the "site_html.pl", not using templates, I just want to ask, if there´s any possibility to open the links in a new window without using templates, please help. I just searched the forum for 2 hours but got no answers.

Greetings from Germany



Quote Reply
Re: new window without templates In reply to
Sounds like you should've used Templates...Wink

Anyway...similar codes are applied in the sub site_html_link as those applied directly in the link.html for templates....

1) Open your site_html.pl file.
2) Go to the sub site_html_link.
3) Look for the following codes:

Code:

<a href="$db_cgi_url/jump.cgi?ID=$rec{'ID'}">$rec{'Title'}</a>


4) Then going back to HTML 101, add target="newwin" attribute in the link anchors:

Code:

<a href="$db_cgi_url/jump.cgi?ID=$rec{'ID'}" target="newwin">$rec{'Title'}</a>


Word of advice: When you see code hacks for Templates like "Add this tag <%tag%>"....You simply replace <%tag%> with $rec{'FieldName'} in the appropriate sub-routine in the site_html.pl file.

Regards,

Eliot Lee

Quote Reply
Re: new window without templates In reply to
Hi,

next time I´ll use templates Wink , but now there´s to much work in it. Anyway....It works now, thx. a lot

Regards
Andy