Merge pull request #4237 from silverstripe/docs-fix-caption-field-name

updated field name for caption text field.
This commit is contained in:
Loz Calver 2015-05-28 14:28:36 +01:00
commit 8a74dc3e0f

View File

@ -226,7 +226,7 @@ Example: Remove field for "image captions"
// File: mysite/code/MyToolbarExtension.php
class MyToolbarExtension extends Extension {
public function updateFieldsForImage(&$fields, $url, $file) {
$fields->removeByName('Caption');
$fields->removeByName('CaptionText');
}
}