Skip to content

Commit

Permalink
fix(pageSection): re-enable rendering in SS templates
Browse files Browse the repository at this point in the history
  • Loading branch information
flxqr2 authored May 26, 2021
1 parent 76169f1 commit b4ec6ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PageSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
);
}

/**
Expand Down

0 comments on commit b4ec6ab

Please sign in to comment.