mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
8fab54429f
commit
0c0bb09e24
@ -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')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user