mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Using new DataList API for DependentPages in SiteTree->getCMSFields()
This commit is contained in:
parent
8da0defa27
commit
4140ddad5e
@ -1795,10 +1795,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$dependentNote = new LiteralField('DependentNote', '<p>' . _t('SiteTree.DEPENDENT_NOTE', 'The following pages depend on this page. This includes virtual pages, redirector pages, and pages with content links.') . '</p>');
|
$dependentNote = new LiteralField('DependentNote', '<p>' . _t('SiteTree.DEPENDENT_NOTE', 'The following pages depend on this page. This includes virtual pages, redirector pages, and pages with content links.') . '</p>');
|
||||||
$dependentTable = new TableListField(
|
$dependentTable = new TableListField(
|
||||||
'DependentPages',
|
'DependentPages',
|
||||||
'SiteTree',
|
$this->DependentPages(),
|
||||||
$dependentColumns
|
$dependentColumns
|
||||||
);
|
);
|
||||||
$dependentTable->setCustomSourceItems($this->DependentPages());
|
|
||||||
$dependentTable->setFieldFormatting(array(
|
$dependentTable->setFieldFormatting(array(
|
||||||
'Title' => '<a href=\"admin/show/$ID\">$Title</a>',
|
'Title' => '<a href=\"admin/show/$ID\">$Title</a>',
|
||||||
'AbsoluteLink' => '<a href=\"$value\">$value</a>',
|
'AbsoluteLink' => '<a href=\"$value\">$value</a>',
|
||||||
|
Loading…
Reference in New Issue
Block a user