allowing UI levels for assets to be overridden in the config file, and allowing developers to specify a default UI level in the definition rather than creating a getUiLevel() method

This commit is contained in:
JT Smith 2005-07-28 21:56:02 +00:00
parent c9cefeca93
commit c7864a0c24
15 changed files with 31 additions and 116 deletions

View file

@ -61,6 +61,7 @@ sub definition {
my $definition = shift;
push(@{$definition}, {
assetName=>WebGUI::International::get('redirect',"Asset_Redirect"),
uiLevel => 9,
icon=>'redirect.gif',
tableName=>'redirect',
className=>'WebGUI::Asset::Redirect',
@ -97,22 +98,6 @@ sub getEditForm {
}
#-------------------------------------------------------------------
=head2 getUiLevel ()
Returns the UI level of this asset.
=cut
sub getUiLevel {
return 9;
}
#-------------------------------------------------------------------
sub www_edit {
my $self = shift;