diff --git a/Classes/Controller/PostController.php b/Classes/Controller/PostController.php index 5e1237c..ddb9295 100755 --- a/Classes/Controller/PostController.php +++ b/Classes/Controller/PostController.php @@ -25,7 +25,10 @@ public function listAction(): ResponseInterface $postRepository = GeneralUtility::makeInstance(PostRepository::class); $posts = $postRepository->findBySettings($this->settings); - $this->view->assign('posts', $posts); + $this->view->assignMultiple([ + 'cObjectData' => $this->request->getAttribute('currentContentObject')->data, + 'posts' => $posts, + ]); return $this->htmlResponse(); }