diff --git a/Classes/Domain/Model/Document.php b/Classes/Domain/Model/Document.php index d2d5971..3a98086 100644 --- a/Classes/Domain/Model/Document.php +++ b/Classes/Domain/Model/Document.php @@ -133,7 +133,7 @@ public static function createFromTSFE(TypoScriptFrontendController $tsfe): Docum $document = new Document(); $document->setId(md5($url)); $document->setRootPageId($tsfe->getSite()->getRootPageId() ?? 0); - $document->setContent($content[0] ?? ''); + $document->setContent(implode(PHP_EOL, $content ?? [])); $document->setType('page'); $document->setTitle($tsfe->page['title'] ?? ''); $document->setUrl($url);