Detail Form Modifications to be able to set some file parameters for the gallery

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42327 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Romain Louis 2007-09-20 04:06:50 +00:00
parent 8fab54429f
commit 0c0bb09e24

View File

@ -92,6 +92,35 @@ class AssetTableField extends ComplexTableField {
), ),
'Main' 'Main'
); );
$detailFormFields->addFieldToTab("BottomRoot",
new Tab("Gallery Options",
new TextField( "Content", "Caption" )
)
);
}
else {
if( $childData->Extension == 'swf' ) {
$detailFormFields->addFieldToTab("BottomRoot",
new Tab("Gallery Options",
new TextField( "Content", "Caption" ),
new TextField( 'PopupWidth', 'Popup Width' ),
new TextField( 'PopupHeight', 'Popup Height' ),
new HeaderField( 'SWF File Options' ),
new CheckboxField( 'Embed', 'Force Embeding' ),
new CheckboxField( 'LimitDimensions', 'Limit The Dimensions In The Popup Window' )
)
);
}
else {
$detailFormFields->addFieldToTab("BottomRoot",
new Tab("Gallery Options",
new TextField( "Content", "Caption" ),
new TextField( 'PopupWidth', 'Popup Width' ),
new TextField( 'PopupHeight', 'Popup Height' )
)
);
}
} }
if($childData && $childData->hasMethod('BackLinkTracking')) { if($childData && $childData->hasMethod('BackLinkTracking')) {