Show Child pages in a Silverstripe template

David Nash silverstripe, What I'm Working On Today Leave a Comment

This allows you to create infinitely deep Silverstripe page hierarchies without having to mess around too much with navigation. Simple and effective. <% include Nav %> <div id=”Content”> <h1>$Title</h1> $Content $Form <% if Children %> <ul style=”padding-top: 1em”> <% control Children %> <li><a href=$Link>$MenuTitle </a></li> <% end_control %> </ul> <% end_if %> </div><!–Content–>