Created
September 10, 2013 01:37
-
-
Save UberNick/6503920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Code snippet to inject all child pages into current page --> | |
<% | |
Iterator<Page> childPages = resourcePage.listChildren(); | |
while (childPages.hasNext()) { | |
Page childPage = childPages.next(); | |
String childPageUrl = childPage.getPath() + ".html"; | |
%> | |
<sling:include path="<%= childPageUrl %>" /> | |
<% } %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment