{%load sections%}
{% get_root_sections with section as root_sections %} {%for nav in root_sections%}
{{nav.title}}
{%endfor%}
{{section.title}}
{%with section.get_related_content as related_content%} {%if related_content%}
Related Content
{%for obj, app, model, rel in related_content%}
{{obj.title}}
{%endfor%}
{%endif%} {%endwith%} {%with section.get_parent as parent%} {%if parent%}
Parent is:
{{parent.title}}
.
{%endif%} {%endwith%} {%with section.get_children as children%} {%if children%}
Child sections:
{%for child in children%}
{{child.title}}
{%endfor%}
{%endif%} {%endwith%}
{% get_root_sections with section as root_sections %} {%for nav in root_sections%}
{{nav.title}}
{%with nav.get_children as subnav_items%} {%if subnav_items%}
{%for subnav in nav.get_children%} {%section_is_descendant section of subnav as subnav_active%}
{{subnav.title}}
{%endfor%}
{%endif%} {%endwith%}
{%endfor%}