Changeset - 1ba6f03529c8
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-05-22 04:38:12
lukeman@gmail.com
add side nav with sibling pages
1 file changed with 14 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion_project/templates/cms/page_detail.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "subnav_base.html" %}
 

	
 
{% block subnav %}
 
    <ul class="nav nav-list">
 
        <li class="nav-header">{{ page.parent }}</li>
 
        {% for sibling in siblings %}
 
            {% if sibling == page %}
 
                <li>{{ sibling }}</li>
 
            {% else %}
 
                <li><a href="{% url cms_page sibling.path %}">{{ sibling }}</a>
 
            {% endif %}
 
        {% endfor %}
 
    </ul>
 
{% endblock %}
 

	
 
{% block body %}
 
    <h1>{{ page.title }}</h1>
0 comments (0 inline, 0 general)