Table of Contents

{% for p in pages|sort(attribute='sortorder') %} {% if p %} {% if p.toc == "True" %}{{ p.sidebartitle }} {% elif p.sortorder[0:2] == page.sortorder[0:2] and not p.sortorder[0:2] == '50' %}{{ p.sidebartitle }} {% elif p.sortorder[0:2] == '50' %}{% if p.sortorder[2:5] == page.sortorder[2:5] %}{{ p.sidebartitle }}{% endif %} {% endif %} {% endif %} {% endfor %} ...or view the full table of contents.