/** * Change main (start or parent) breadcrumbs and/or title for this backend * constructor. * * @access protected * @since 1.2.0-dev * @version 1.2.0-dev */ protected function alterBreadcrumbsTitleMain() { // parent call parent::alterBreadcrumbsTitleMain(); // remove last breadcrumb $this->removeBreadcrumb(); // add new breadcrumb $sControllerOriginal = Router::getControllerName(); $sURL = Route::backendUrl($sControllerOriginal, 'index'); $sControllerName = strtolower($sControllerOriginal); $this->addBreadCrumb(__('section.' . $sControllerName), $sURL); }
/** * Change main (start or parent) breadcrumbs and/or title for this backend * constructor. * * @access protected * @since 1.0.0-alpha * @version 1.0.0-alpha */ protected function alterBreadcrumbsTitleMain() { $sControllerOriginal = Router::getControllerName(); $sURL = Route::backendUrl($sControllerOriginal, 'list'); $sControllerName = strtolower($sControllerOriginal); $sectionTranslation = __('section.' . $sControllerName); $this->setTitle(__('Management panel') . ' - '); $this->addToTitle($sectionTranslation . ' - '); $this->addBreadCrumb(__('Home'), Route::backendUrl()); $this->addBreadCrumb($sectionTranslation, $sURL); }
/** * Change main (start or parent) breadcrumbs and/or title for this backend * constructor. * * @access protected * @since 1.1.3-dev, 2015-08-20 * @version 1.2.0-dev */ protected function alterBreadcrumbsTitleMain() { parent::alterBreadcrumbsTitleMain(); $this->setTitle(__('Management panel') . ' - '); $iMenuID = Router::getParam('id'); $sAction = Router::getParam('action'); if ($iMenuID === FALSE || $sAction === FALSE) { throw new Exception\Code404(); } if ($sAction === 'edit') { $oItem = DB::find('\\Model\\Menu\\Item', $iMenuID); /* @var $oItem \Model\Menu\Item */ $iMenuID = $oItem->getMenu()->getId(); } $this->removeBreadcrumb(); $this->addBreadCrumb(__('Menu list'), Route::backendUrl('menu', 'list')); $this->addBreadCrumb(__('Menu items list'), Route::backendUrl(Router::getControllerName(), 'list', $iMenuID)); }