Skip to content

Instantly share code, notes, and snippets.

@brennandunn
Created August 7, 2008 15:53
Show Gist options
  • Save brennandunn/4432 to your computer and use it in GitHub Desktop.
Save brennandunn/4432 to your computer and use it in GitHub Desktop.
<p:find title="Services">
<!-- set the current scope to the 'services' page -->
<p:children:each>
<!-- iterate over each child of services, which are the 'sections' -->
<h2><p:title/></h2> <!-- print out the section title -->
<ul>
<p:children:each>
<!-- now that we're in a 'section', iterate over each sub page -->
<li><p:link/></li> <!-- create a link to this sub page -->
</p:children:each>
</ul>
</p:children:each>
</p:find>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment