mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: Add element anchor name
This commit is contained in:
parent
f1942f015d
commit
442ada037d
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user