diff --git a/lib/WebGUI/Asset/File/GalleryFile.pm b/lib/WebGUI/Asset/File/GalleryFile.pm index e94ef8d1a..30705b081 100644 --- a/lib/WebGUI/Asset/File/GalleryFile.pm +++ b/lib/WebGUI/Asset/File/GalleryFile.pm @@ -21,14 +21,17 @@ extends 'WebGUI::Asset::File'; define assetName => ['assetName', 'Asset_GalleryFile']; define tableName => 'GalleryFile'; property views => ( + fieldType => 'integer', noFormPost => 1, default => 0, ); property friendsOnly => ( + fieldType => 'yesNo', label => ['editForm friendsOnly','Asset_Photo'], default => 0, ); property rating => ( + fieldType => 'integer', noFormPost => 1, default => 0, ); diff --git a/lib/WebGUI/Asset/WikiPage.pm b/lib/WebGUI/Asset/WikiPage.pm index 995d774d5..69a9eb4c6 100644 --- a/lib/WebGUI/Asset/WikiPage.pm +++ b/lib/WebGUI/Asset/WikiPage.pm @@ -22,9 +22,9 @@ use Moose; use WebGUI::Definition::Asset; extends 'WebGUI::Asset'; -apsect assetName => ['assetName', 'Asset_WikiPage']; -apsect icon => 'wikiPage.gif'; -apsect tableName => 'WikiPage'; +define assetName => ['assetName', 'Asset_WikiPage']; +define icon => 'wikiPage.gif'; +define tableName => 'WikiPage'; property content => ( fieldType => "HTMLArea", diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index ccd948172..028e2580a 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -10,11 +10,9 @@ package WebGUI::Asset::Wobject::GalleryAlbum; # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------- -use strict; -#use Class::C3; -#use base qw(WebGUI::AssetAspect::RssFeed WebGUI::Asset::Wobject); use Moose; use WebGUI::Definition::Asset; +extends 'WebGUI::Asset::Wobject'; define assetName => ['assetName', 'Asset_GalleryAlbum']; define icon => 'photoAlbum.gif'; define tableName => 'GalleryAlbum'; @@ -43,6 +41,7 @@ for my $i ( 1 .. 5 ) { } with 'WebGUI::Role::Asset::AlwaysHidden'; +with 'WebGUI::Role::Asset::RssFeed'; use Carp qw( croak ); use File::Find;