mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
[IMPR] Display first element title automatically
This commit is contained in:
parent
f1dd6da7d4
commit
ea290f8358
@ -95,6 +95,7 @@ class BaseElementEx extends DataExtension
|
||||
$page = $el->getPage();
|
||||
if ($page) {
|
||||
$el->setField('Title', $page->getField('Title'));
|
||||
$el->setField('ShowTitle', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user