Skip to content

Instantly share code, notes, and snippets.

@digiltd
Last active May 13, 2016 10:29
Show Gist options
  • Save digiltd/80571ebc2d7f77d952ce572b1a04e0f0 to your computer and use it in GitHub Desktop.
Save digiltd/80571ebc2d7f77d952ce572b1a04e0f0 to your computer and use it in GitHub Desktop.
Kirby - Getting content from subpages
<?php foreach($page->children() as $section): ?>
<h1><?php echo $section->title()->html() ?></h1>
<?php echo $section->text()->kirbytext() ?>
<?php endforeach ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment