{pboot:nav num=10 parent=0}
<a href="[nav:link]">[nav:name]</a>

{pboot:if([nav:soncount]>0)}

{pboot:2nav num=10 parent=[nav:scode]}
<a href="[2nav:link]">[2nav:name]</a>

{pboot:3nav num=10 parent=[2nav:scode]}
<a href="[3nav:link]">[3nav:name]</a>
{/pboot:3nav}

{/pboot:2nav}

{/pboot:if}

{/pboot:nav}