silverstripe-cms/code/controllers/CMSPageSettingsController.php

27 lines
730 B
PHP
Raw Normal View History

<?php
/**
* @package cms
*/
class CMSPageSettingsController extends CMSMain {
private static $url_segment = 'pages/settings';
private static $url_rule = '/$Action/$ID/$OtherID';
private static $url_priority = 42;
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
private static $session_namespace = 'CMSMain';
2015-09-29 06:18:03 +02:00
public function getEditForm($id = null, $fields = null) {
$record = $this->getRecord($id ? $id : $this->currentPageID());
2015-09-29 06:18:03 +02:00
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
}
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}