A slight variation that doesn't require repeating the whole navigation
div in each base_SECTION.html template:

# base.html
{% block content %}...{% endblock %}
{% block navigation %}
<ul>
    <li{% block active_section_1 %}{% endblock %}><a href="#">Section
1</a></li>
    <li{% block active_section_2 %}{% endblock %}><a href="#">Section
2</a></li>
</ul>
{% endblock %}

# base_section1.html
{% extends "base.html" %}
{% block active_section_1 %} class="active"{% endblock %}

# base_section2.html
{% extends "base.html" %}
{% block active_section_2 %} class="active"{% endblock %}

# section1_specific_page.html
{% extends "base_section1.html" %}
{% block content %}...{% endblock %}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to