IMPR: Add element anchor name

This commit is contained in:
Tony Air 2023-11-16 23:59:41 +02:00
parent f1942f015d
commit 442ada037d

View File

@ -28,6 +28,12 @@ class BaseElementEx extends DataExtension
{
$obj = $this->owner;
parent::updateCMSFields($fields);
$fields->addFieldToTab('Root.Main', LiteralField::create(
'AnchorName',
'Element Anchor name: #e'.$this->ID
));
$tab = $fields->findOrMakeTab('Root.Settings');
$tab->push(LiteralField::create(