mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Improved wording in Blog CMS fields
This commit is contained in:
parent
92b6de1d77
commit
966d168119
@ -41,15 +41,21 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
|||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
SiteTree::enableCMSFieldsExtensions();
|
SiteTree::enableCMSFieldsExtensions();
|
||||||
|
|
||||||
//sets the ID and Name Map for Blog Ownership
|
$fields->addFieldToTab(
|
||||||
$owners = new DropdownField('OwnerID', 'Blog owner', $blogOwners->map('ID', 'Name')->toArray());
|
'Root.Main',
|
||||||
$owners->setEmptyString('(None)');
|
DropdownField::create('OwnerID', 'Blog owner', $blogOwners->map('ID', 'Name')->toArray())
|
||||||
$owners->setHasEmptyDefault(true);
|
->setEmptyString('(None)')
|
||||||
|
->setHasEmptyDefault(true),
|
||||||
|
"Content"
|
||||||
|
);
|
||||||
$fields->addFieldToTab('Root.Main', new CheckboxField('TrackBacksEnabled', 'Enable TrackBacks'), "Content");
|
$fields->addFieldToTab('Root.Main', new CheckboxField('TrackBacksEnabled', 'Enable TrackBacks'), "Content");
|
||||||
$fields->addFieldToTab('Root.Main', $owners, "Content");
|
|
||||||
$fields->addFieldToTab('Root.Main', new CheckboxField('AllowCustomAuthors', 'Allow non-admins to have a custom author field'), "Content");
|
$fields->addFieldToTab('Root.Main', new CheckboxField('AllowCustomAuthors', 'Allow non-admins to have a custom author field'), "Content");
|
||||||
$fields->addFieldToTab("Root.Main", new CheckboxField("ShowFullEntry", "Show Full Entry"), "Content");
|
$fields->addFieldToTab(
|
||||||
|
"Root.Main",
|
||||||
|
CheckboxField::create("ShowFullEntry", "Show Full Entry")
|
||||||
|
->setDescription('Show full content in overviews rather than summary'),
|
||||||
|
"Content"
|
||||||
|
);
|
||||||
|
|
||||||
$this->extend('updateCMSFields', $fields);
|
$this->extend('updateCMSFields', $fields);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user