_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 _initDetailsPage(array $item) { Qs_Navigation::append(array('title' => $item['name'])); return parent::_initDetailsPage($item); } protected function _prepareViewItem(array &$item) { $item['backUrl'] = static::getPage('url'); $item['title'] = $item['name']; return parent::_prepareViewItem($item); } public function writeXmlSitemap(App_Sitemap_Xml_Writer $xml) { return $this->writeDefaultXmlSitemap($xml); } }