Skip to content

Commit

Permalink
fix: multiple content sections
Browse files Browse the repository at this point in the history
  • Loading branch information
runepiper committed Mar 7, 2024
1 parent a461a81 commit d6cbb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6cbb97

Please sign in to comment.