Gossamer Forum
Home : Products : Links 2.0 : Customization :

Link.html --> different categories

Quote Reply
Link.html --> different categories
I would like to know if there is a way to use different link.html... to customize links output according to the category.

Thanks in advance.

milano1@freemail.it
Quote Reply
Re: Link.html --> different categories In reply to
you could set up alternate templates by category, see http://www.gossamer-threads.com/...um3/HTML/001985.html

[This message has been edited by bjordan (edited August 29, 1999).]
Quote Reply
Re: Link.html --> different categories In reply to
what if I should use

link1.html in category_1
link2.html in category_2

etc. ??

Thanks for your help
Quote Reply
Re: Link.html --> different categories In reply to
Great it works! Thanks. Wink
Quote Reply
Re: Link.html --> different categories In reply to
Please do not post the same question in multiple threads. I have answered this one already in another thread based on the same question there. http://www.gossamer-threads.com/...um3/HTML/001985.html

I realize that your question in the other thread was asked after this thread was started, but asking the same thing in multiple threads just confuses things and increases bandwidth for everyone.

Thank you for your cooperation.

------------------
Bob Connors, Moderator
Links Modification Forum
Moderator Email: moderator@orphanage.com
Personal Email: bobsie@orphanage.com
goodstuff.orphanage.com/

Quote Reply
Re: Link.html --> different categories In reply to
I tried in site_html_templates.pl

----
sub site_html_link {

my $template;
if ($category_name =~ "cat1") {
$template = "link2.html";
}elsif ($category_name =~ "cat2") {
$template = "link2.html";
}elsif ($category_name =~ "cat3") {
$template = "link2.html";
}else { $template = "link.html"; }


##then i modified to

return &load_template ('$template', {

-------

I'm receiving this error:

Error Message : fatal error: Template: Can't find template: /home/cgi-bin/admin/templates/$template at /home/cgi-bin/admin/Template.pm line 41.

What is the other step??
Please help.