Hi,
just make a new template global (Admin -> Build -> Template Globals) and call it "TotalCats":
# show total number of categories
my $cat_db = $DB->table ('Category');
my $count = $cat_db->total;
return $count;
}With that you can use the tag <%TotalCats%> in your templates (i.e. category.html or footer.txt).
Andreas
http://www.archaeologie-online.de
just make a new template global (Admin -> Build -> Template Globals) and call it "TotalCats":
Code:
sub { # show total number of categories
my $cat_db = $DB->table ('Category');
my $count = $cat_db->total;
return $count;
}
Andreas
http://www.archaeologie-online.de