mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Using GridField instead of TableListField for SiteTree->getCMSFields() DependentPages (fixes #7239)
This commit is contained in:
parent
a73e45769a
commit
8c1651ec59
@ -1806,19 +1806,16 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
if(class_exists('Subsite')) $dependentColumns['Subsite.Title'] = singleton('Subsite')->i18n_singular_name();
|
||||
|
||||
$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 = GridField::create(
|
||||
'DependentPages',
|
||||
$this->DependentPages(),
|
||||
$dependentColumns
|
||||
false,
|
||||
$this->DependentPages()
|
||||
);
|
||||
$dependentTable->setFieldFormatting(array(
|
||||
$dependentTable->getConfig()->getComponentByType('GridFieldDataColumns')
|
||||
->setFieldFormatting(array(
|
||||
'Title' => '<a href=\"admin/show/$ID\">$Title</a>',
|
||||
'AbsoluteLink' => '<a href=\"$value\">$value</a>',
|
||||
));
|
||||
$dependentTable->setPermissions(array(
|
||||
'show',
|
||||
'export'
|
||||
));
|
||||
));
|
||||
}
|
||||
|
||||
$baseLink = Controller::join_links (
|
||||
|
Loading…
Reference in New Issue
Block a user