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,

So you tried this:

Code:
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;

my $full_name2 = $full_name;
$full_name2 =~ s|/| / |g;

$cat .= qq~<a href="$CFG->{build_root_url}/$full_name/index.html">$full_name2</a><br>~;
$seen->{$name} = 1;
}

return $cat;
}

I havn't tested it, but I can't see any reason why that wouldn't work ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Categories from a link in the detailed page JoseML 8528 Apr 29, 2008, 4:02 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8370 Apr 29, 2008, 11:35 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8325 May 1, 2008, 3:17 AM
Thread Re: [JoseML] Categories from a link in the detailed page
JoseML 8284 Aug 20, 2008, 6:08 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8272 Aug 20, 2008, 11:56 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8245 Aug 21, 2008, 5:08 PM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8256 Aug 21, 2008, 11:24 PM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8216 Aug 22, 2008, 3:07 AM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8217 Aug 22, 2008, 3:11 AM
Thread Re: [Andy] Categories from a link in the detailed page
JoseML 8269 Aug 22, 2008, 5:36 AM
Thread Re: [JoseML] Categories from a link in the detailed page
Andy 8247 Aug 22, 2008, 5:46 AM
Post Re: [Andy] Categories from a link in the detailed page
JoseML 8200 Aug 23, 2008, 2:42 AM