Re: [Andy] Category Name On detailed pageIn reply to
Hi I want to display in the details page list of all categories that are in the same level. I try a lot of Globals in the forum, but they don’t work. I am using Version: 3.2
Re: [nir] Category Name On detailed pageIn reply to
nir wrote:
Hi I want to display in the details page list of all categories that are in the same level. I try a lot of Globals in the forum, but they don’t work. I am using Version: 3.2
Hi,
A list of other links in the same category, or other subcategories?
Re: [nir] Category Name On detailed pageIn reply to
Hi,
You could try this:
Code:
sub {
# get the category this link is in... my $rec = $DB->table('CatLinks','Category')->select( { LinkID => $_[0] } )->fetchrow_hashref;
my @loop; my $tbl = $DB->table('Category'); $tbl->select_options('ORDER BY Name DESC'); my $sth = $tbl->select( { FatherID => $rec->{FatherID} } ) || die $GT::SQL::error;
while (my $hit = $sth->fetchrow_hashref) { $hit->{url} = $DB->table('Category')->as_url( { ID => $hit->{ID} } ); push @loop, $hit; }