mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-29 20:59:05 +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
@ -73,7 +73,7 @@ class AssetTableField extends ComplexTableField {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(is_a($childData,'Image')) {
|
if(is_a($childData,'Image')) {
|
||||||
$big = $childData->URL;
|
$big = $childData->URL;
|
||||||
$thumbnail = $childData->getFormattedImage('AssetLibraryPreview')->URL;
|
$thumbnail = $childData->getFormattedImage('AssetLibraryPreview')->URL;
|
||||||
@ -92,8 +92,37 @@ 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')) {
|
||||||
$links = $childData->BackLinkTracking();
|
$links = $childData->BackLinkTracking();
|
||||||
if($links->exists()) {
|
if($links->exists()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user