Hi guys, I've tried doing a search for this, but couldn't really find what I was after.
Basically I am making a problem solver page, where users are asked questions and depending on the answer,
they are asked a different question.
So I've set up a few questions as a pages and subpages.. (the screenshot will help you understand)
Now that's all fine, but the problem comes when displaying all these children and subchildren on the page.
They way I'm doing it now is shown below, but this seems like a super code heavy way of doing it.. Just wonder if there was an easier
way to get all children and subchildren of a page without having to next 10 children controls..
Can anyone please help? that would be awesome
<% control Children %>
<li class="answer"><a href="#" class="q1" rel="$Tag">$Title</a><ul>
<% control Children %>
<li>$Title
<ul>
<% control Children %>
<li class="answer"><a href="#" class="q2" rel="$Tag">$Title</a>
<ul>
<% control Children %>
<li>$Title<ul>
<% control Children %>
<li class="answer"><a href="#" class="q3" rel="$Tag">$Title</a>
</li>
<% end_control %>
</ul>
</li>
<% end_control %>
</ul>
</li>
<% end_control %>
</ul>
</li>
<% end_control %>
</ul>
</li>
<% end_control %>