{{if $catClass and count($catClass::roots())}}
{{foreach $catClass::roots() as $root}}
-
{$root->_title}
{{if count($root->children())}}
{{foreach $root->children() as $child}}
-
{{if count($child->children())}}
{{foreach $child->children() as $subchild}}
-
{{if count($subchild->children())}}
{{foreach $subchild->children() as $subsubchild}}
-
{{if $records AND $SuperDocs_levels > 3}}
{{foreach $records as $childrecord}}
{{if $childrecord->container()->_id == $subsubchild->_id}}
{{endif}}
{{endforeach}}
{{endif}}
{{endforeach}}
{{endif}}
{{if $records AND $SuperDocs_levels > 2}}
{{foreach $records as $childrecord}}
{{if $childrecord->container()->_id == $subchild->_id}}
{{endif}}
{{endforeach}}
{{endif}}
{{endforeach}}
{{endif}}
{{if $records AND $SuperDocs_levels > 1}}
{{foreach $records as $subchildrecord}}
{{if $subchildrecord->container()->_id == $child->_id}}
{{endif}}
{{endforeach}}
{{endif}}
{{endforeach}}
{{endif}}
{{if $records AND $SuperDocs_levels > 0}}
{{foreach $records as $navrecord}}
{{if $navrecord->container()->_id == $root->_id}}
{{if $firstRecord == null}}
{{$firstRecord = $navrecord;}}
{{endif}}
-
{$navrecord->_title}
{{endif}}
{{endforeach}}
{{endif}}
{{endforeach}}
{{endif}}