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

linked category name in link.html

Quote Reply
linked category name in link.html
Is there a way to put the category name (if possible linked to the category) to each link 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
Quote Reply
Re: linked category name in link.html In reply to
Thanks!!

Quote Reply
Re: linked category name in link.html In reply to
You're welcome.

Regards,

Eliot Lee