First let me say that I'm new to SilverStripe - so there is probably a really simple answer to this that I just can't quite find.
Imagine I have a holder: AnimalHolder
Each AnimalHolder can hold multiple pages of types: CatPage or DogPage
What I want to achieve is to have two separate lists of Cats and Dogs in my AnimalHolder.ss.
I've tried similar to:
<ul id="cats">
<% if ClassName = CatPage %>
<% control Children %>
<li>Cat: $Title</li>
<% end_control %>
<% end_if %>
</ul>
<ul id="dogs">
<% if ClassName = DogPage %>
<% control Children %>
<li>Dog: $Title</li>
<% end_control %>
<% end_if %>
</ul>
however, this does not work.
Any ideas?