mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 15:05:54 +00:00
FIX: SS5 API
This commit is contained in:
parent
32d8fa88c3
commit
6ed295156f
@ -31,12 +31,15 @@ class BaseElementEx extends DataExtension
|
|||||||
parent::updateCMSFields($fields);
|
parent::updateCMSFields($fields);
|
||||||
|
|
||||||
if ($obj->ID) {
|
if ($obj->ID) {
|
||||||
$fields->insertBefore(LiteralField::create(
|
$fields->insertBefore(
|
||||||
'AnchorName',
|
'Title',
|
||||||
'<div class="field"><div class="form__field-holder">'
|
LiteralField::create(
|
||||||
.'Element Anchor name: <b>#e'.$obj->ID.'</b>'
|
'AnchorName',
|
||||||
.'</div></div>'
|
'<div class="field"><div class="form__field-holder">'
|
||||||
), 'Title');
|
.'Element Anchor name: <b>#e'.$obj->ID.'</b>'
|
||||||
|
.'</div></div>'
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab = $fields->findOrMakeTab('Root.Settings');
|
$tab = $fields->findOrMakeTab('Root.Settings');
|
||||||
@ -74,7 +77,7 @@ class BaseElementEx extends DataExtension
|
|||||||
|
|
||||||
public function updateCMSEditLink(&$link): void
|
public function updateCMSEditLink(&$link): void
|
||||||
{
|
{
|
||||||
if(!method_exists($this->owner, 'inlineEditable')) {
|
if (!method_exists($this->owner, 'inlineEditable')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user