<p>For theming, I need to get the Section Handle for the current Entry. When using dump(entry), I see <strong>sectionId</strong> is available. This works fine:</p>

<pre><code>{{ entry.sectionId }}
</code></pre>

<p>But I'm not seeing a way to get the <strong>sectionHandle</strong>. Does anyone know a quick way to get it?</p>

CC BY-SA 3.0
2015-02-07T19:36:57.253Z
We already had this question, it's even answered by Brandon of P&T: ["Get the current page Handle"](http://craftcms.stackexchange.com/q/1682/125).
carlcs
CC BY-SA 3.0
2015-02-07T19:40:15.393Z
No idea how I didn't find that when searching. I was looking for "Entry" handles, and that question specifies it as "Page". It does answer my question though!
Does the trick:

{% set section = entry.getSection() %}
{% set handle = section.handle %}
taylor
CC BY-SA 3.0
2015-02-07T19:43:33.947Z
Yep "Page" is not the best term to ask this question. Glad you found what you need, Zack!
carlcs
CC BY-SA 3.0
2015-02-07T20:45:08.173Z
I know a way to fix that — change the title ;)
Douglas McDonald
<templating><entry><sections>
Get Handle/Name of Entry's Section
# Get Handle/Name of Entry's Section

(Asked by: username_0 on 2015-02-07)

For theming, I need to get the Section Handle for the current Entry. When using dump(entry), I see sectionId is available. This works fine:
{{ entry.sectionId }}

But I'm not seeing a way to get the sectionHandle. Does anyone know a quick way to get it?

**Tags:** templating, entry, sections

> **Comments:**
> **username_1**: We already had this question, it's even answered by Brandon of P&T: ["Get the current page Handle"](http://craftcms.stackexchange.com/q/1682/125).  
> **username_0**: No idea how I didn't find that when searching. I was looking for "Entry" handles, and that question specifies it as "Page". It does answer my question though! Does the trick:  {% set section = entry.getSection() %} {% set handle = section.handle %}  
> **username_1**: Yep "Page" is not the best term to ask this question. Glad you found what you need, Zack!  
> **username_2**: I know a way to fix that — change the title ;)  

---

## 0 answers

