fixing bugs checked in yesterday

This commit is contained in:
JT Smith 2005-07-21 16:13:48 +00:00
parent 68d8b840ce
commit 8bb98ef5a0
8 changed files with 45 additions and 14 deletions

View file

@ -14,6 +14,20 @@ save you many hours of grief.
sure they will comply. sure they will comply.
6.6.4
--------------------------------------------------------------------
* Please ensure you're running HTML::Template version 2.7, which
supports javascript escaping and is needed to ensure js
menus work everywhere. To see what version you're running,
type:
perl -MHTML::Template -e 'print $HTML::Template::VERSION."\n"'
at a command prompt, or alternatively use the
sbin/testEnvironment.pl script included with WebGUI. If
you've had your WebGUI site running on versions prior to 6.4
then you should delete your lib/HTML folder as it contains
an outdated version of HTML::Template.
6.6.3 6.6.3
-------------------------------------------------------------------- --------------------------------------------------------------------
* If you created your site using the create.sql script from 6.6.2 * If you created your site using the create.sql script from 6.6.2

View file

@ -1182,8 +1182,8 @@ sub getIcon {
my $small = shift; my $small = shift;
my $definition = $self->definition; my $definition = $self->definition;
my $icon = $definition->[0]{icon} || "assets.gif"; my $icon = $definition->[0]{icon} || "assets.gif";
return $session{config}{extrasURL}.'/adminConsole/small/'.$icon if ($small); return $session{config}{extrasURL}.'/assets/small/'.$icon if ($small);
return $session{config}{extrasURL}.'/adminConsole/'.$icon; return $session{config}{extrasURL}.'/assets/'.$icon;
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------

View file

@ -93,7 +93,7 @@ sub definition {
my $class = shift; my $class = shift;
my $definition = shift; my $definition = shift;
push(@{$definition}, { push(@{$definition}, {
assetName=>WebGUI::International::get('post',"Asset_Post") assetName=>WebGUI::International::get('post',"Asset_Post"),
icon=>'post.gif', icon=>'post.gif',
tableName=>'Post', tableName=>'Post',
className=>'WebGUI::Asset::Post', className=>'WebGUI::Asset::Post',

View file

@ -69,6 +69,7 @@ sub definition {
push(@{$definition}, { push(@{$definition}, {
tableName=>'wobject', tableName=>'wobject',
className=>'WebGUI::Asset::Wobject', className=>'WebGUI::Asset::Wobject',
autoGenerateForms=>1,
properties=>{ properties=>{
description=>{ description=>{
fieldType=>'HTMLArea', fieldType=>'HTMLArea',
@ -248,17 +249,20 @@ Returns the TabForm object that will be used in generating the edit page for thi
sub getEditForm { sub getEditForm {
my $self = shift; my $self = shift;
my $tabform = $self->SUPER::getEditForm(); my $tabform = $self->SUPER::getEditForm();
my $definition = $self->definition; foreach my $definition (@{$self->definition}) {
my $properties = $definition->[0]{properties}; my $properties = $definition->{properties};
foreach my $fieldname (keys %{$properties}) { next unless ($definition->{autoGenerateForms});
my %params; foreach my $fieldname (keys %{$properties}) {
foreach my $key (keys %{$properties->{$fieldname}}) { my %params;
next if ($key eq "tab" || $key eq "fieldType"); foreach my $key (keys %{$properties->{$fieldname}}) {
$params{"-".$key} = $properties->{$fieldname}{$key} next if ($key eq "tab" || $key eq "fieldType");
$params{"-".$key} = $properties->{$fieldname}{$key}
}
$params{"-value"} = $self->getValue($fieldname);
$params{"-name"} = $fieldname;
my $tab = $properties->{$fieldname}{tab} || "properties";
$tabform->getTab($tab)->dynamicField($properties->{$fieldname}{fieldType},%params);
} }
$params{"-value"} = $self->getValue($fieldname);
$params{"-name"} = $fieldname;
$tabform->getTab($properties->{$fieldname}{tab})->dynamicField($properties->{$fieldname}{fieldType},%params);
} }
return $tabform; return $tabform;
} }

View file

@ -28,17 +28,20 @@ sub definition {
push(@{$definition}, { push(@{$definition}, {
assetName=>WebGUI::International::get(1,"Asset_Article"), assetName=>WebGUI::International::get(1,"Asset_Article"),
icon=>'article.gif', icon=>'article.gif',
autoGenerateForms=>1,
tableName=>'Article', tableName=>'Article',
className=>'WebGUI::Asset::Wobject::Article', className=>'WebGUI::Asset::Wobject::Article',
properties=>{ properties=>{
templateId =>{ templateId =>{
fieldType=>"template", fieldType=>"template",
defaultValue=>'PBtmpl0000000000000002', defaultValue=>'PBtmpl0000000000000002',
tab=>"display",
namespace=>"Article", namespace=>"Article",
hoverHelp=>WebGUI::International::get('article template description','Asset_Article'), hoverHelp=>WebGUI::International::get('article template description','Asset_Article'),
label=>WebGUI::International::get(72,"Asset_Article") label=>WebGUI::International::get(72,"Asset_Article")
}, },
linkURL=>{ linkURL=>{
tab=>"properties",
fieldType=>'url', fieldType=>'url',
defaultValue=>undef, defaultValue=>undef,
label=>WebGUI::International::get(8,"Asset_Article"), label=>WebGUI::International::get(8,"Asset_Article"),
@ -46,6 +49,7 @@ sub definition {
uiLevel=>3 uiLevel=>3
}, },
linkTitle=>{ linkTitle=>{
tab=>"properties",
fieldType=>'text', fieldType=>'text',
defaultValue=>undef, defaultValue=>undef,
label=>WebGUI::International::get(7,"Asset_Article"), label=>WebGUI::International::get(7,"Asset_Article"),
@ -53,6 +57,7 @@ sub definition {
uiLevel=>3 uiLevel=>3
}, },
convertCarriageReturns=>{ convertCarriageReturns=>{
tab=>"display",
fieldType=>'yesNo', fieldType=>'yesNo',
defaultValue=>0, defaultValue=>0,
label=>WebGUI::International::get(10,"Asset_Article"), label=>WebGUI::International::get(10,"Asset_Article"),

View file

@ -259,7 +259,7 @@ sub definition {
my $class = shift; my $class = shift;
my $definition = shift; my $definition = shift;
push(@{$definition}, { push(@{$definition}, {
assetName=>WebGUI::International::get('collaboration system',"Asset_collaboration"), assetName=>WebGUI::International::get('collaboration system',"Asset_Collaboration"),
icon=>'collaboration.gif', icon=>'collaboration.gif',
tableName=>'Collaboration', tableName=>'Collaboration',
className=>'WebGUI::Asset::Wobject::Collaboration', className=>'WebGUI::Asset::Wobject::Collaboration',

View file

@ -30,8 +30,10 @@ sub definition {
icon=>'messageBoard.gif', icon=>'messageBoard.gif',
tableName=>'MessageBoard', tableName=>'MessageBoard',
className=>'WebGUI::Asset::Wobject::MessageBoard', className=>'WebGUI::Asset::Wobject::MessageBoard',
autoGenerateForms=>1,
properties=>{ properties=>{
templateId =>{ templateId =>{
tab=>"display",
fieldType=>"template", fieldType=>"template",
defaultValue=>'PBtmpl0000000000000047', defaultValue=>'PBtmpl0000000000000047',
namespace=>"MessageBoard", namespace=>"MessageBoard",

View file

@ -74,11 +74,13 @@ sub definition {
my $definition = shift; my $definition = shift;
push(@{$definition}, { push(@{$definition}, {
assetName=>WebGUI::International::get(2,'Asset_SyndicatedContent'), assetName=>WebGUI::International::get(2,'Asset_SyndicatedContent'),
autoGenerateForms=>1,
icon=>'syndicatedContent.gif', icon=>'syndicatedContent.gif',
tableName=>'SyndicatedContent', tableName=>'SyndicatedContent',
className=>'WebGUI::Asset::Wobject::SyndicatedContent', className=>'WebGUI::Asset::Wobject::SyndicatedContent',
properties=>{ properties=>{
templateId =>{ templateId =>{
tab=>"display",
fieldType=>'template', fieldType=>'template',
defaultValue=>'PBtmpl0000000000000065', defaultValue=>'PBtmpl0000000000000065',
namespace=>'SyndicatedContent', namespace=>'SyndicatedContent',
@ -86,18 +88,21 @@ sub definition {
hoverHelp=>WebGUI::International::get('72 description','Asset_SyndicatedContent') hoverHelp=>WebGUI::International::get('72 description','Asset_SyndicatedContent')
}, },
rssUrl=>{ rssUrl=>{
tab=>"properties",
defaultValue=>undef, defaultValue=>undef,
fieldType=>'textarea', fieldType=>'textarea',
label=>WebGUI::International::get(1,'Asset_SyndicatedContent'), label=>WebGUI::International::get(1,'Asset_SyndicatedContent'),
hoverHelp=>WebGUI::International::get('1 description','Asset_SyndicatedContent') hoverHelp=>WebGUI::International::get('1 description','Asset_SyndicatedContent')
}, },
maxHeadlines=>{ maxHeadlines=>{
tab=>"properties",
fieldType=>'integer', fieldType=>'integer',
defaultValue=>10, defaultValue=>10,
label=>WebGUI::International::get(3,'Asset_SyndicatedContent'), label=>WebGUI::International::get(3,'Asset_SyndicatedContent'),
hoverHelp=>WebGUI::International::get('3 description','Asset_SyndicatedContent') hoverHelp=>WebGUI::International::get('3 description','Asset_SyndicatedContent')
}, },
displayMode=>{ displayMode=>{
tab=>"display",
fieldType=>'selectList', fieldType=>'selectList',
defaultValue=>'interleaved', defaultValue=>'interleaved',
options=>{ options=>{
@ -110,6 +115,7 @@ sub definition {
subtext=>WebGUI::International::get('displayModeSubtext','Asset_SyndicatedContent') subtext=>WebGUI::International::get('displayModeSubtext','Asset_SyndicatedContent')
}, },
hasTerms=>{ hasTerms=>{
tab=>"properties",
fieldType=>'text', fieldType=>'text',
defaultValue=>'', defaultValue=>'',
label=>WebGUI::International::get('hasTermsLabel','Asset_SyndicatedContent'), label=>WebGUI::International::get('hasTermsLabel','Asset_SyndicatedContent'),