_restAlias) { $this->_getDataObj()->setPrimaryKeyByAlias($this->_restAlias); $data = $this->_getDataObj()->getData(); if (!$data) { $this->_do404(); } $this->_action = 'view'; } return parent::_initAction(); } protected function _prepareViewItem(array &$item) { $item['chairId'] = Entity::POSITION_CHAIR_ID; $item['memberUrl'] = MemberDirectoryView::getViewUrl(); if ($item['nextMeeting']) { $item['nextMeeting']['url'] = EventView::getViewUrl($item['nextMeeting']['alias']); } $item['title'] = $item['name']; return parent::_prepareViewItem($item); } protected function _initDetailsPage(array $item) { Qs_Navigation::append(['title' => $item['name']]); return parent::_initDetailsPage($item); } public function preDispatch(array &$items) { $this->_initAction(); if ('view' == $this->_action) { foreach ($items as $i => $item) { if ($item['type'] == 'HtmlBlock_') { unset($items[$i]); break; } } } return $this; } public function writeXmlSitemap(App_Sitemap_Xml_Writer $xml) { return $this->writeDefaultXmlSitemap($xml); } }