Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Oyo] All category links on detailed page?

Quote Reply
Re: [Oyo] All category links on detailed page? In reply to
That seems to be good.
You can confirm ?

-------------
sub {
my $id = shift;
my $catid = $DB->table('CatLinks')->select({LinkID=>$id})->fetchrow_hashref->{CategoryID};
my $db = $DB->table('CatLinks','Links');
$db->select_options ('ORDER BY hits DESC', 'LIMIT 1');
my $cond = GT::SQL::Condition->new(
'CatLinks.CategoryID','=',$catid,
'CatLinks.LinkID','<>',$id);
my $rs = $db->select($cond,['Links.*'])->fetchall_hashref or return;
my $output ="...";
foreach(@$rs){
$output .= Links::SiteHTML::display('link',$_);
}
return $output;
}

-----------------------

Thank you for your answer.

Last edited by:

Oyo: Aug 12, 2006, 1:58 PM
Subject Author Views Date
Thread All category links on detailed page? kailew 4035 Dec 17, 2005, 8:09 AM
Thread Re: [kailew] All category links on detailed page?
tandat 3915 Dec 17, 2005, 10:36 AM
Thread Re: [tandat] All category links on detailed page?
kailew 3921 Dec 17, 2005, 10:54 AM
Thread Re: [kailew] All category links on detailed page?
tandat 3907 Dec 17, 2005, 11:19 AM
Thread Re: [tandat] All category links on detailed page?
kailew 3897 Dec 17, 2005, 4:41 PM
Thread Re: [kailew] All category links on detailed page?
tandat 3886 Dec 18, 2005, 5:51 AM
Thread Re: [tandat] All category links on detailed page?
kailew 3883 Dec 18, 2005, 8:10 AM
Post Re: [kailew] All category links on detailed page?
tandat 3881 Dec 18, 2005, 10:05 AM
Thread Re: [tandat] All category links on detailed page?
MJ_ 3753 Aug 12, 2006, 1:14 PM
Post Re: [Oyo] All category links on detailed page?
MJ_ 3742 Aug 12, 2006, 1:55 PM