mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
91cfcb8229
Remove hardcoded references to pages and SiteTree Remove assumption that records are versioned Remove or validate assumptions about methods on the model class Improve general architecture of CMSMain
30 lines
579 B
PHP
30 lines
579 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Controllers;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
// @TODO What a pointless class!!!!!!
|
|
class CMSPagesController extends CMSMain
|
|
{
|
|
private static $url_segment = 'pages';
|
|
|
|
private static $url_rule = '/$Action/$ID/$OtherID';
|
|
|
|
private static $url_priority = 40;
|
|
|
|
private static $menu_title = 'Pages';
|
|
|
|
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
|
|
|
public function LinkPreview()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function isCurrentRecord(DataObject $record)
|
|
{
|
|
return false;
|
|
}
|
|
}
|