Just got a quick question.. I'm trying to create a big ul of children of several different pages for a directory site I'm creating..
At the moment in the page template I have got a few <% ChildrenOf (page-name)%> tags all listed out. Is there a better way to do it? I have been trying to create a function to group them all together but I cant work it out, something like this:
function SpecificChildren() {
static $allowed_children = array('page-name1', 'page-name2');
}
Should that work? Then in the template have something like this:
<ul>
<% control SpecificChildren %>
<li><a href="$Link" title="$Title">$Title</a></li>
<% end_control %>
</ul>
Is there a better way to do it?