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">


 <% if Children %>
 <ul style="padding-top: 1em">
   <% control Children %>
   <li><a href=$Link>$MenuTitle </a></li>
   <% end_control %>
 <% end_if %>


Leave a Reply