Skip to content

Commit

Permalink
Detail Form Modifications to be able to set some file parameters for …
Browse files Browse the repository at this point in the history
…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
Romain Louis authored and Sam Minnee committed Feb 2, 2011
1 parent 1726e9a commit 4ea3d2c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions code/AssetTableField.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -90,6 +90,35 @@ function DetailForm() {
), ),
'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')) {
Expand Down

0 comments on commit 4ea3d2c

Please sign in to comment.