- or download this
Category 1
Forum 1 threads: 10 replies: 20
...
Forum 3 threads: 14 replies 42
etc.
- or download this
@all_categories = (
{
...
},
...
);
- or download this
SELECT
IFNULL(COUNT(mx_replies.forum_id),0) AS reply_count,
...
mx_forums.id,forum_name, forum_description
ORDER BY
mx_forums.create_date DESC
- or download this
for ( @{ $categories } ) {
...
push @all_categories, { name => $_, forums => $forums, };
}
- or download this
$tmpl->param( categories => \@all_categories );
- or download this
<ol>
<tmpl_loop categories>
...
</li>
</tmpl_loop>
</ol>