Is there a way to put the category name (if possible linked to the category) to each link in link.html?
Feb 14, 2001, 4:46 PM
Veteran (17240 posts)
Feb 14, 2001, 4:46 PM
Post #2 of 4
Views: 2754
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:
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:
Category => $category,
printcat => $catname
3) Then in the link.html file, add the following codes:
<a href="<%build_root_url%>/<%Category%>"><%printcat%></a>
Then re-build your directory....
That's all to it!
Regards,
Eliot Lee
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