diff --git a/Controller.php b/Controller.php index 780a318..3074818 100644 --- a/Controller.php +++ b/Controller.php @@ -156,6 +156,9 @@ class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/News/Theme/Backend/news-archive'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000701001, $request, $response)); + $articles = NewsArticleMapper::getNewest(50); + $view->addData('articles', $articles); + return $view; } diff --git a/Theme/Backend/news-archive.tpl.php b/Theme/Backend/news-archive.tpl.php index 5bfde9b..ec921dc 100644 --- a/Theme/Backend/news-archive.tpl.php +++ b/Theme/Backend/news-archive.tpl.php @@ -22,6 +22,8 @@ $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); $footerView->setPages(20); $footerView->setPage(1); +$articles = $this->getData('articles'); + echo $this->getData('nav')->render(); ?>