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

Re: linked category name in link.html

Quote Reply
Re: linked category name in link.html In reply to
Yes...there is....

Do the following:

1) Add the following codes in the sub site_html_link routine in the HTML_Templates.pm module file:

Code:

my $catname = &Links::DB_Utils::get_category_name($rec->{CategoryID});
my $category = &Links::DB_Utils::build_clean_name($catname);


2) Then add the following in the &load_templates hash in the same sub:

Code:

Category => $category,
printcat => $catname


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

Code:

<a href="<%build_root_url%>/<%Category%>"><%printcat%></a>


Then re-build your directory....

That's all to it!

Regards,

Eliot Lee
Subject Author Views Date
Thread linked category name in link.html Spitfire 2573 Feb 14, 2001, 2:15 PM
Thread Re: linked category name in link.html
Stealth 2530 Feb 14, 2001, 4:46 PM
Thread Re: linked category name in link.html
Spitfire 2512 Feb 15, 2001, 1:42 AM
Post Re: linked category name in link.html
Stealth 2513 Feb 15, 2001, 9:37 AM