Hi, I`ve been using:
--------------
sub {
my $tags = shift;
my $seen;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
my $sth = $db->select ( { LinkID => $id }, ['ID','Name','Full_Name'] );
my $cat;
while (my ($id,$name,$full_name) = $sth->fetchrow_array) {
if ($id =~ /^234|3|112$/) { next; }
if ($seen->{$name}) { next; }
$full_name =~ s/ /_/g;
$cat .= qq~<a href="$CFG->{build_root_url}/$full_name/index.html">$name</a><br>~;
$seen->{$name} = 1;
}
return $cat;
}
------------------
but I need for the whole name of the category to be read so I changed it this way:
$cat .= qq~<a href="$CFG->{build_root_url}/$full_name/index.html">$full_name</a><br>~;
However the name (Category/subcategory1/subcategory2 ... etc) is too long.
I need someone to tell me how I can break line.
Thanks in advance.
JoseML
--------------
sub {
my $tags = shift;
my $seen;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
my $sth = $db->select ( { LinkID => $id }, ['ID','Name','Full_Name'] );
my $cat;
while (my ($id,$name,$full_name) = $sth->fetchrow_array) {
if ($id =~ /^234|3|112$/) { next; }
if ($seen->{$name}) { next; }
$full_name =~ s/ /_/g;
$cat .= qq~<a href="$CFG->{build_root_url}/$full_name/index.html">$name</a><br>~;
$seen->{$name} = 1;
}
return $cat;
}
------------------
but I need for the whole name of the category to be read so I changed it this way:
$cat .= qq~<a href="$CFG->{build_root_url}/$full_name/index.html">$full_name</a><br>~;
However the name (Category/subcategory1/subcategory2 ... etc) is too long.
I need someone to tell me how I can break line.
Thanks in advance.
JoseML