From b4ec6ab5da0e3f7a81dd83f85dec2ba5414cd57f Mon Sep 17 00:00:00 2001 From: Felix Quartu Date: Wed, 26 May 2021 15:08:28 +0200 Subject: [PATCH] fix(pageSection): re-enable rendering in SS templates --- src/PageSection.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PageSection.php b/src/PageSection.php index 9a59d59..3b48ea0 100644 --- a/src/PageSection.php +++ b/src/PageSection.php @@ -74,7 +74,11 @@ public function onAfterWrite() public function forTemplate() { - return $this->Elements()->Count(); + $elements = $this->Elements(); + return $this->renderWith( + "RenderChildren", + array("Elements" => $elements, "ParentList" => strval($this->ID)) + ); } /**