Skip to main content
Clarifies that this answer applies to an old version of Craft.
Source Link

This applies to Craft 2. For Craft 3+, see hashchange's answer.


You can get the current template’s name like so:

{{ _self.getTemplateName() }}

You can get the current template’s name like so:

{{ _self.getTemplateName() }}

This applies to Craft 2. For Craft 3+, see hashchange's answer.


You can get the current template’s name like so:

{{ _self.getTemplateName() }}
Source Link
Brandon Kelly
  • 34.4k
  • 2
  • 74
  • 139

You can get the current template’s name like so:

{{ _self.getTemplateName() }}