I have this global to return the name of the category a link is in. How do I do if's with this?
Example:
<%if F_Name eq 'Car Port'%>Car Port Accessories<%endif%>
but this dosnt return that text.
Global:
sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
$db->select_options('LIMIT 1');
my $catid = $db->select ( { LinkID => $id }, ['Name'] )->fetchrow_array;
return $catid;
}
<%F_Name%>
--------------------------------
Privacy Software
Example:
<%if F_Name eq 'Car Port'%>Car Port Accessories<%endif%>
but this dosnt return that text.
Global:
sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
$db->select_options('LIMIT 1');
my $catid = $db->select ( { LinkID => $id }, ['Name'] )->fetchrow_array;
return $catid;
}
<%F_Name%>
--------------------------------
Privacy Software