mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX: #138 allow subsite summary fields to be customized
This commit is contained in:
parent
9c9e0bfa94
commit
b979b38694
@ -67,6 +67,15 @@ class Subsite extends DataObject {
|
||||
*/
|
||||
public static $check_is_public = true;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
private static $summary_fields = array(
|
||||
'Title',
|
||||
'PrimaryDomain',
|
||||
'IsPublic'
|
||||
);
|
||||
|
||||
/**
|
||||
* Set allowed themes
|
||||
*
|
||||
@ -609,18 +618,6 @@ class Subsite extends DataObject {
|
||||
return $labels;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function summaryFields() {
|
||||
return array(
|
||||
'Title' => $this->fieldLabel('Title'),
|
||||
'PrimaryDomain' => $this->fieldLabel('PrimaryDomain'),
|
||||
'IsPublic' => _t('Subsite.IsPublicHeaderField','Active subsite'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the themes that can be used with this subsite, as an array of themecode => description
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user