I've actually decided to use the "caption" field under the Gallery Options tab, instead of creating a new database field. I played around with the following code in the AssetTableField.php. I noticed a change when I switched the following from TextField to HtmlEditorField
if(class_exists('GalleryFile')) {
$detailFormFields->addFieldToTab("BottomRoot",
new Tab(_t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'),
new HtmlEditorField( "Content", _t('AssetTableField.CAPTION', 'Caption') )
)
);
}
}
else if (class_exists('GalleryFile')) {
if( $childData->Extension == 'swf' ) {
$detailFormFields->addFieldToTab("BottomRoot",
new Tab(_t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'),
new HtmlEditorField( "Content", _t('AssetTableField.CAPTION', 'Caption') ),
new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ),
new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ),
new HeaderField( _t('AssetTableField.SWFFILEOPTIONS', 'SWF File Options') ),
new CheckboxField( 'Embed', _t('AssetTableField.ISFLASH', 'Is A Flash Document') ),
new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') )
)
);
}
----------------
when I made this change the text field complete disappeared. I think I need to pass some parameters with the HtmlEditorField that wasn't required with the TextField. I'm not sure and need help. Can you look at the code above and let me know? I think I'm on the right track but still confused.
Thanks :o)