Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Description under the link ?

Quote Reply
Description under the link ?
Hello again,

I would like the link's description to appear under the link's name and not besides it.

ie
The Software - (Added: 19-Jan-2000 Hits: 0 Rating: 0 Votes: 0) Rate It
Description

Also, I succeded in including a new.gif graphic next to new categories but the "new" appearing next to the site link is still text. Where should I modify this ?

Thank you very much.

Chris.
Quote Reply
Re: Description under the link ? In reply to
Okay...Go into your link.html file...

1) To edit the link, so that the Description field appears below the link information, just add a <br> after the Rate It stuff.

So, it should look something like the following:

Code:
<a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a>
<br>
<%if Description%>
<%Description%>
<%endif%>

2) To add the "new" graphic rather than the Text NEW, in your link.html file, add these codes:

Code:
<%if isNew%>
<img src="/path/to/newimage.gif">
<%endif%>

Also, make sure that you have the following codes in your sub site_html_link in your site_html_templates.pl:

Code:
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});

BTW: You are asking common questions that have been answered before in the Installation Forums and in this Forum...PLEASE try to use the Forum's search engine to find appropriate Threads.

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------