Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [JoseML] Categories from a link in the detailed page

Quote Reply
Re: [JoseML] Categories from a link in the detailed page In reply to
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
Subject Author Views Date
Thread Categories from a link in the detailed page JoseML 8612 Apr 29, 2008, 4:02 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8452 Apr 29, 2008, 11:35 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8408 May 1, 2008, 3:17 AM
Thread Re: [JoseML] Categories from a link in the detailed page
JoseML 8367 Aug 20, 2008, 6:08 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8356 Aug 20, 2008, 11:56 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8328 Aug 21, 2008, 5:08 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8339 Aug 21, 2008, 11:24 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8298 Aug 22, 2008, 3:07 AM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8300 Aug 22, 2008, 3:11 AM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8351 Aug 22, 2008, 5:36 AM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8329 Aug 22, 2008, 5:46 AM
Post Re: [Andy] Categories from a link in the detailed page
JoseML 8283 Aug 23, 2008, 2:42 AM