0

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?

4
  • We already had this question, it's even answered by Brandon of P&T: "Get the current page Handle".
    – carlcs
    Feb 7 '15 at 19:36
  • 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
    Feb 7 '15 at 19:40
  • Yep "Page" is not the best term to ask this question. Glad you found what you need, Zack!
    – carlcs
    Feb 7 '15 at 19:43
  • 1
    I know a way to fix that — change the title ;) Feb 7 '15 at 20:45

This site is temporarily in read only mode and not accepting new answers.

Browse other questions tagged .