<p>There is an nice <a href="http://craftcookbook.net/recipes/77">recipe on the craftcookbook.net</a> site from sprocketeer that explains exactly this.</p>

<pre><code>{% set topEntry = craft.entries.depth(1).slug('information').first() %}
&lt;ul&gt;
    {% nav subEntry in topEntry.getDescendants() %}
        &lt;li&gt;{{ subEntry.title }}
            {% ifchildren %}&lt;ul&gt;{% children %}&lt;/ul&gt;{% endifchildren %}
        &lt;/li&gt;
    {% endnav %}
&lt;/ul&gt;﻿
</code></pre>

CC BY-SA 3.0
2014-10-01T14:45:44.103Z
2014-10-01T14:45:44.103Z
Douglas McDonald
<p>I have my navigation in a <code>Structure</code> like <a href="https://i.sstatic.net/uMU8Y.png" rel="nofollow noreferrer">here</a> and I want to build a sub-navigation on my Information page containing Specials, Reviews, and About, but I can't figure out how.</p>

<pre><code>{% set active_item = craft.entries.section('navigation').nextSiblingOf(48).first() %}
</code></pre>

<p>doesn't give me what I need (and I really don't like handling with id's).</p>

<templating><sections><navigation>
How to create sub-nav when using a structured navigation heirarchy?
# How to create sub-nav when using a structured navigation heirarchy?

(Asked by: username_0 on 2014-10-01)

I have my navigation in a Structure like here and I want to build a sub-navigation on my Information page containing Specials, Reviews, and About, but I can't figure out how.
{% set active_item = craft.entries.section('navigation').nextSiblingOf(48).first() %}

doesn't give me what I need (and I really don't like handling with id's).

**Tags:** templating, sections, navigation

---

## 1 answers

### Answer by username_1 on 2014-10-01. Score: 5 | Accepted answer

There is an nice recipe on the craftcookbook.net site from sprocketeer that explains exactly this.
{% set topEntry = craft.entries.depth(1).slug('information').first() %}

    {% nav subEntry in topEntry.getDescendants() %}
        {{ subEntry.title }}
            {% ifchildren %}{% children %}{% endifchildren %}
        
    {% endnav %}
﻿


---

