public function homeAction()
 {
     if ($this->hasParam('pos')) {
         $pos = $this->getParam('pos');
     } else {
         $pos = 0;
     }
     $this->setTitleCurrentPage(array());
     $this->saveLastPage();
     if ($this->userService->checkRight('CONTENT_EDIT')) {
         $state = \org\equinox\modules\content\dao\ContentDto::STATE_ALL;
     } else {
         $state = \org\equinox\modules\content\dao\ContentDto::STATE_ONLINE;
     }
     $list = $this->contentService->listByIdCategory(0, $state, $pos, self::PAGE_STEP + 1, true);
     if (sizeof($list) == self::PAGE_STEP + 1) {
         $this->assign('posNext', $pos + self::PAGE_STEP);
         array_pop($list);
     } else {
         $this->assign('posNext', -1);
     }
     $this->assign('pos', $pos);
     $this->assign('posPrec', $pos - self::PAGE_STEP);
     $this->assign('edito', $this->contentService->getEdito());
     $this->assign('listeContent', $list);
 }