silverstripe-cms/code/Controllers/CMSPageSettingsController.php

28 lines
693 B
PHP
Raw Permalink Normal View History

<?php
2016-07-22 11:32:32 +12:00
namespace SilverStripe\CMS\Controllers;
class CMSPageSettingsController extends CMSMain {
private static $url_segment = 'pages/settings';
2016-08-10 16:08:39 +12:00
private static $url_rule = '/$Action/$ID/$OtherID';
2016-08-10 16:08:39 +12:00
private static $url_priority = 42;
2016-08-10 16:08:39 +12:00
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
2015-09-29 17:18:03 +13:00
public function getEditForm($id = null, $fields = null) {
$record = $this->getRecord($id ?: $this->currentPageID());
2015-09-29 17:18:03 +13:00
return parent::getEditForm($id, ($record) ? $record->getSettingsFields() : null);
}
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}