Re: [fabriceg] Top Level Categories in the right columnIn reply to
A global has a name, say TopLevelCategories, and is called within a template by using <%TopLevelCategories%> in the template.
To create a global, go to Build > Template Globals. Scroll down and use the New fields. For your new TopLevelCategories global, copy the code above (the "sub"line must be a the very start of the textfield.
Re: [fabriceg] Top Level Categories in the right columnIn reply to
Hi,
Something like this should work;
Code:
sub { my ($category,$output); my $db = $DB->table('Category') || return $GT::SQL::error; $db->select_options('ORDER BY Full_Name','LIMIT 100') || return $GT::SQL::error;