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

Products: Gossamer Links: Development, Plugins and Globals: Re: [incik] Global to Display Category Properties on add.html: Edit Log

Here is the list of edits for this post
Re: [incik] Global to Display Category Properties on add.html
This is a bit more complicated because a link can be in multiple categories. Something like this:

Code:

sub {
my $ID = $IN->param('ID') || return '';
my $sth = $DB->table('Category','CatLinks')->select( { LinkID => $ID });

my @cats;
while (my $cat=$sth->fetchrow_hashref){
push @cats, $cat;
}
return {Cat_Loop=>\@cats};
}


Last edited by:

afinlr: Jul 28, 2006, 3:52 PM

Edit Log: