[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-28 14:07:50 +02:00
parent a76fc165db
commit c8d9b9bf3a
6 changed files with 80 additions and 0 deletions
@@ -109,6 +109,27 @@ class AdminCmsContentControllerCore extends AdminController
));
}
public function initPageHeaderToolbar()
{
$id_cms_category = (int)Tools::getValue('id_cms_category');
if (!$id_cms_category)
$id_cms_category = 1;
$this->page_header_toolbar_title = $this->l('CMS');
$this->page_header_toolbar_btn['new_cms_category'] = array(
'href' => self::$currentIndex.'&addcms_category&token='.$this->token,
'desc' => $this->l('Add new CMS category'),
'icon' => 'process-icon-new'
);
$this->page_header_toolbar_btn['new_cms_page'] = array(
'href' => self::$currentIndex.'&addcms&id_cms_category='.$id_cms_category.'&token='.$this->token,
'desc' => $this->l('Add new CMS page'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function postProcess()
{
if (Tools::isSubmit('submitDelcms')