Permalink
Browse files

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/branches/2.1.0@42330 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 1726e9a commit 4ea3d2c688b7737e9a101d54a00a0b20040f5053 Romain Louis committed with sminnee Sep 20, 2007
Showing with 29 additions and 0 deletions.
  1. +29 −0 code/AssetTableField.php
@@ -90,6 +90,35 @@ function DetailForm() {
),
'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')) {

0 comments on commit 4ea3d2c

Please sign in to comment.