2011-04-16 07:54:52 +02:00
|
|
|
<?php
|
2011-08-19 02:32:31 +02:00
|
|
|
|
2016-07-22 01:32:32 +02:00
|
|
|
namespace SilverStripe\CMS\Controllers;
|
|
|
|
|
2011-08-19 02:32:31 +02:00
|
|
|
/**
|
|
|
|
* @package cms
|
|
|
|
*/
|
2011-04-16 07:54:52 +02:00
|
|
|
class CMSPageSettingsController extends CMSMain {
|
|
|
|
|
2013-03-18 11:47:15 +01:00
|
|
|
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';
|
2016-07-22 01:32:32 +02:00
|
|
|
private static $session_namespace = 'SilverStripe\\CMS\\Controllers\\CMSMain';
|
2015-09-29 06:18:03 +02:00
|
|
|
|
2012-09-19 12:07:46 +02:00
|
|
|
public function getEditForm($id = null, $fields = null) {
|
2016-05-09 06:43:19 +02:00
|
|
|
$record = $this->getRecord($id ?: $this->currentPageID());
|
2015-09-29 06:18:03 +02:00
|
|
|
|
2016-05-09 06:43:19 +02:00
|
|
|
return parent::getEditForm($id, ($record) ? $record->getSettingsFields() : null);
|
2011-04-16 07:54:52 +02:00
|
|
|
}
|
2012-03-12 11:52:39 +01:00
|
|
|
|
2012-11-29 14:43:05 +01:00
|
|
|
public function Breadcrumbs($unlinked = false) {
|
|
|
|
$crumbs = parent::Breadcrumbs($unlinked);
|
|
|
|
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
|
|
|
|
return $crumbs;
|
|
|
|
}
|
|
|
|
|
2012-04-12 09:23:20 +02:00
|
|
|
}
|