mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
Toggle metadata fields in SiteTree->getCMSFields()
To save space, reduce clutter and deemphasize the fields. Partially fixes #7405, needs better design though.
This commit is contained in:
parent
3ff0c428cf
commit
69e4fa072a
@ -366,7 +366,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replace a "[sitetree_link,id=n]" shortcode with a link to the page with the corresponding ID.
|
* Replace a "[sitetree_link id=n]" shortcode with a link to the page with the corresponding ID.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@ -1854,10 +1854,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$urlsegment,
|
$urlsegment,
|
||||||
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
||||||
$htmlField = new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", 'HTML editor title')),
|
$htmlField = new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", 'HTML editor title')),
|
||||||
|
ToggleCompositeField::create('Metadata', _t('SiteTree.MetadataToggle', 'Metadata'),
|
||||||
|
array(
|
||||||
new TextField("MetaTitle", $this->fieldLabel('MetaTitle')),
|
new TextField("MetaTitle", $this->fieldLabel('MetaTitle')),
|
||||||
new TextareaField("MetaKeywords", $this->fieldLabel('MetaKeywords'), 1),
|
new TextareaField("MetaKeywords", $this->fieldLabel('MetaKeywords'), 1),
|
||||||
new TextareaField("MetaDescription", $this->fieldLabel('MetaDescription')),
|
new TextareaField("MetaDescription", $this->fieldLabel('MetaDescription')),
|
||||||
new TextareaField("ExtraMeta",$this->fieldLabel('ExtraMeta'))
|
new TextareaField("ExtraMeta",$this->fieldLabel('ExtraMeta'))
|
||||||
|
)
|
||||||
|
)->setHeadingLevel(4)
|
||||||
),
|
),
|
||||||
$tabDependent = new Tab('Dependent',
|
$tabDependent = new Tab('Dependent',
|
||||||
$dependentNote,
|
$dependentNote,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user