Hi
txs for your answer
My global is now
sub {
my $tags = shift;
my $post_db = $DB->table ('Post');
$post_db->select_options ('ORDER BY post_time DESC', 'LIMIT 10');
my $sth = $post_db->select(GT::SQL::Condition->new(post_root_id => '=' => 0, forum_id_fk => '!=' => [7,8]));
my @output;
while (my $post = $sth->fetchrow_hashref)
{
push @output, $post;
}
return { post_loop => \@output };
}
It works except that this global displays some threads of all my forums... I don't understand because it shoudn't display the threads from my Forum '7' and my forum '8'...
any idea....
txs
FMP