Hello
I modified this sub assuming this should change any link in 'LINKS' but unfortunately I found that it doesn't work for links coming up with search results.
file: site:html_templates.pl
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like.
my $template_link;
if ($category_name =~ "category1") {
$template_link = "link-cat1.html";
}elsif ($category_name =~ "category2") {
$template_link = "link-cat2.html";
}elsif ($category_name =~ "category3") {
$template_link = "link-cat3.html";
}else { $template_link = "link.html"; }
my %rec = @_;
# Set new and pop to either 1 or 0 for templates.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ($template_link, {
-----
I modified this sub assuming this should change any link in 'LINKS' but unfortunately I found that it doesn't work for links coming up with search results.
file: site:html_templates.pl
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like.
my $template_link;
if ($category_name =~ "category1") {
$template_link = "link-cat1.html";
}elsif ($category_name =~ "category2") {
$template_link = "link-cat2.html";
}elsif ($category_name =~ "category3") {
$template_link = "link-cat3.html";
}else { $template_link = "link.html"; }
my %rec = @_;
# Set new and pop to either 1 or 0 for templates.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ($template_link, {
-----