protected function compile()
 {
     $arrNavigation = array();
     $objArticle = \ArticleModel::findByPid($GLOBALS['objPage']->id);
     while ($objArticle->next()) {
         if ($objArticle->addNavigation && $objArticle->published) {
             if ($objArticle->navigation_title) {
                 $objArticle->title = $objArticle->navigation_title;
             }
             $arrNavigation[] = (object) $objArticle->row();
         }
     }
     $arrNavigation[0]->css = 'first active';
     $arrNavigation[count($arrNavigation) - 1]->css = 'last';
     $this->Template->navigation = $arrNavigation;
 }