Answers.Body: <p>You can get the current section handle from the entry like so</p>
  
  <pre><code>{{ entry.section.handle }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-31T14:29:22.610Z
Answers.Text: No problems, glad it did the trick ;)
Answers.UserDisplayName: Fyrebase
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-31T12:26:14.277Z
Answers.LastActivityDate: 2016-08-31T12:26:14.277Z
Answers.UserDisplayName: Fyrebase
Body: <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>
  
Tags: <navigation><sections>
Title: Current Section handle
ThreadText: # 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 ;)  
  
  ---
  
  