title: Menu pages in Mezzanine
body: <p>In Mezzanine / Django, I have several nested pages but only the most deeply-nested page has content. For each intermediate page I simply want to show a menu of its immediate children. For example, given the layout:</p>
  
  <pre><code>Chapter 1
      Section 1.1
          Subsection 1.1.1
          Subsection 1.1.2
      Section 1.2
          Subsection 1.2.1
  Chapter 2
      Section 2.1
          Subsection 2.1.1
  </code></pre>
  
  <p>The page slugged as <code>chapter-1</code> should just show a list of</p>
  
  <pre><code>* Section 1.1
  * Section 1.2
  </code></pre>
  
  <p>I can do this by creating custom templates for each Chapter and Section containing:</p>
  
  <pre><code>{% load pages_tags %}
  {% page_menu "pages/menus/chapter_menu.html" %}
  </code></pre>
  
  <p>where <code>chapter_menu.html</code> is my menu template:</p>
  
  <pre><code>{% load pages_tags %}
  &lt;ul&gt;
  {% for page in page_branch %}
  {% if page.in_menu %}
  {% if page.is_current_child %}
  &lt;li&gt;
      &lt;a href="{{ page.get_absolute_url }}"&gt;{{ page.title }}&lt;/a&gt;
  &lt;/li&gt;
  {% else %}
  {% page_menu page %}
  {% endif %}
  {% endif %}
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>However, each template name (e.g. <code>pages/chapter-1.html</code>) has to match the slug of the page it refers to, so I need to duplicate these templates for every chapter and every section.</p>
  
  <p>What is the correct way to do this without all the duplication of templates?</p>