// Changed CMS list behavior (edit instead of front office view)
This commit is contained in:
@@ -37,7 +37,6 @@ class AdminCmsControllerCore extends AdminController
|
|||||||
$this->table = 'cms';
|
$this->table = 'cms';
|
||||||
$this->className = 'CMS';
|
$this->className = 'CMS';
|
||||||
$this->lang = true;
|
$this->lang = true;
|
||||||
$this->addRowAction('view');
|
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||||
@@ -48,7 +47,7 @@ class AdminCmsControllerCore extends AdminController
|
|||||||
'meta_title' => array('title' => $this->l('Title'), 'width' => '300', 'filter_key' => 'b!meta_title'),
|
'meta_title' => array('title' => $this->l('Title'), 'width' => '300', 'filter_key' => 'b!meta_title'),
|
||||||
'position' => array('title' => $this->l('Position'), 'width' => 40,'filter_key' => 'position', 'align' => 'center', 'position' => 'position'),
|
'position' => array('title' => $this->l('Position'), 'width' => 40,'filter_key' => 'position', 'align' => 'center', 'position' => 'position'),
|
||||||
'active' => array('title' => $this->l('Displayed'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false)
|
'active' => array('title' => $this->l('Displayed'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false)
|
||||||
);
|
);
|
||||||
|
|
||||||
// The controller can't be call directly
|
// The controller can't be call directly
|
||||||
// In this case, AdminCmsContentController::getCurrentCMSCategory() is null
|
// In this case, AdminCmsContentController::getCurrentCMSCategory() is null
|
||||||
|
|||||||
Reference in New Issue
Block a user