Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Bobsie on vacation... please help

Quote Reply
Bobsie on vacation... please help
How can I customize link fields in search results page using templates. I would like to have a different ouptput according to the category.


in site_html.templates.pl I tried:

in sub link

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

and it works but the search results produce always link.html


Please help I'm really confused :/