Make documentation more clear.

This commit is contained in:
Simon Elvery 2012-11-13 16:00:44 +10:00
parent 7cdcab00c9
commit 0702e8902b

View File

@ -210,10 +210,23 @@ attach this behaviour to custom fields by calling a helper function from your ge
// Add fields as usual
$additionalField = new TextField('AdditionalProperty');
$fields->addFieldToTab('Root.Content.Main', $additionalField);
$fields->addFieldToTab('Root.Main', $additionalField);
// Apply Translatable modifications
$this->applyTranslatableFieldsUpdate($fields, str_replace('get', 'update', __FUNCTION__));
$this->applyTranslatableFieldsUpdate($fields, 'updateCMSFields');
return $fields;
}
function getSettingsFields() {
$fields = parent::getSettingsFields();
// Add fields as usual
$additionalField = new TextField('AdditionalProperty');
$fields->addFieldToTab('Root.Main', $additionalField);
// Apply Translatable modifications
$this->applyTranslatableFieldsUpdate($fields, 'updateSettingsFields');
return $fields;
}