added an empty style template and the ability to hide templates from forms and editing

This commit is contained in:
JT Smith 2004-02-22 18:10:14 +00:00
parent 016c33171e
commit 044b024011
5 changed files with 16 additions and 5 deletions

View file

@ -93,7 +93,7 @@ Defaults to "Page". Specify the namespace to build the list for.
sub getList {
my $namespace = $_[0] || "Page";
return WebGUI::SQL->buildHashRef("select templateId,name from template where namespace=".quote($namespace)." order by name");
return WebGUI::SQL->buildHashRef("select templateId,name from template where namespace=".quote($namespace)." and showInForms=1 order by name");
}