_restAlias) { if (1 == count($this->_restParams)) { $this->_defaultAction = 'view'; $this->_getDataObj()->setPrimaryKeyByAlias($this->_restAlias); } else { $this->_do404(); return $this; } } return parent::exec(); } public function preDispatch(&$items) { if (!empty($this->_restAlias)) { foreach ($items as $index => $item) { if ($item['type'] == 'HtmlBlock_' && $item['groupName'] == 'ITEMS') { unset($items[$index]); } } } return $this; } protected function _prepareViewItem(array &$item) { $item['metaTitle'] = ($item['metaTitle']) ?: $item['name']; $item['backUrl'] = self::getPage('url'); return parent::_prepareViewItem($item); } protected function _initDetailsPage(array $item) { Qs_Navigation::append(array('title' => $item['name'])); return parent::_initDetailsPage($item); } }