public function indexAction()
 {
     $oNieuwsItem = new NieuwsItem();
     $oNieuwsItem->setTranslatedTitelKey($this->_getParam('t'));
     $aNieuwsItem = $oNieuwsItem->getItem();
     if (!$oNieuwsItem->exists()) {
         $this->displayErrorPage(404);
     }
     $this->view->assign('aNieuwsItem', $aNieuwsItem);
     //		Zend_Debug::dump($oNieuwsItem->getTranslations()); exit;
     $this->addExtraBreadcrumb($aNieuwsItem['titel']);
     $this->setPageTitle($aNieuwsItem['titel']);
     // renderen
     $this->render($this->_getParam('template') . '/' . $this->_getParam('block'), $this->_getParam('block'));
 }
 public function getUrlAndTitle()
 {
     require_once 'NieuwsItem.php';
     $oNieuwsItem = new NieuwsItem();
     $oNieuwsItem->setId($this->_iId);
     $oStructure = Structure::getInstance();
     $iParent = $oStructure->getParentNodeIdByModule('nieuws');
     if ($iParent == 0 || $oStructure->isOffline($iParent) === true) {
         // item is niet te herleiden tot een pagina
         return array('url' => '', 'title' => '');
     }
     $oMainModule = new Swis_MainModule($iParent);
     $aPath = Structure::getPathToNodeWithInfo($iParent);
     $sTitle = '';
     foreach (array_reverse($aPath) as $aNode) {
         if ($aNode['special_page'] == 0) {
             $sTitle .= empty($sTitle) ? $aNode['title'] : ' - ' . $aNode['title'];
         }
     }
     $oMainModule = new Swis_MainModule($iParent);
     return array('url' => $oMainModule->get('item') . $oNieuwsItem->get('link'), 'title' => $sTitle);
 }