<p>You can get the current section handle from the entry like so</p>

<pre><code>{{ entry.section.handle }}
</code></pre>

CC BY-SA 3.0
2016-08-31T14:29:22.610Z
No problems, glad it did the trick ;)
Fyrebase
CC BY-SA 3.0
2016-08-31T12:26:14.277Z
2016-08-31T12:26:14.277Z
Fyrebase
<p>I want to build a subnav with all entries from the current Section.</p>

<pre><code>{% set pages = craft.entries.section(getCurrentSection).level(1) %}
</code></pre>

<p>I'm looking for the handle "getCurrentSection". I will use this for pages in 5 different sections, so I don't want to select the section by hand, like:</p>

<pre><code>{% set pages = craft.entries.section('Section 1').level(1) %}
{% set pages = craft.entries.section('Section 2').level(1) %}
......
</code></pre>

<navigation><sections>
Current Section handle
# Current Section handle

(Asked by: username_0 on 2016-08-31)

I want to build a subnav with all entries from the current Section.
{% set pages = craft.entries.section(getCurrentSection).level(1) %}

I'm looking for the handle "getCurrentSection". I will use this for pages in 5 different sections, so I don't want to select the section by hand, like:
{% set pages = craft.entries.section('Section 1').level(1) %}
{% set pages = craft.entries.section('Section 2').level(1) %}
......

**Tags:** navigation, sections

---

## 1 answers

### Answer by username_1 on 2016-08-31. Score: 2 | Accepted answer

You can get the current section handle from the entry like so
{{ entry.section.handle }}

> **Comments:**
> **username_1**: No problems, glad it did the trick ;)  

---

