mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
6aeac37906
ENHANCEMENT Namespaced tree search parameters in CMSMain, in order to detect more reliably if a filter has been applied. Changing page search form to standard pushState behaviour, same as ModelAdmin (for both tree and list view). MINOR Refactored list view loading
20 lines
473 B
PHP
20 lines
473 B
PHP
<?php
|
|
|
|
/**
|
|
* @package cms
|
|
*/
|
|
class CMSPageSettingsController extends CMSMain {
|
|
|
|
static $url_segment = 'pages/settings';
|
|
static $url_rule = '/$Action/$ID/$OtherID';
|
|
static $url_priority = 42;
|
|
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
|
|
|
function getEditForm($id = null, $fields = null) {
|
|
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
|
|
|
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
|
}
|
|
|
|
}
|