<p>You need to allow the <code>entry.type</code> value to be part of the <code>include</code> path...</p>

<pre><code>{% include "events/_types/" ~ entry.type %}
</code></pre>

<p>Since your <code>entry.type</code> is "summerpreview", that will be parsed out like this...</p>

<pre><code>{% include "events/_types/summerpreview" %}
</code></pre>

<p>With Craft, you don't need to specify the <code>.html</code> extension, so this include should work perfectly.</p>

<hr>

<p>As a side note... I'd recommend turning on <code>devMode</code> locally. It would have thrown an error, telling you that <code>summerpreview</code> is not a legitimate variable.</p>

<blockquote>
  <p><a href="https://craftcms.com/support/dev-mode" rel="nofollow noreferrer">What Dev Mode Does</a></p>
</blockquote>

CC BY-SA 3.0
2018-03-23T16:49:50.457Z
2018-03-23T16:49:50.457Z
Lindsey D
<p>I'm using this <a href="https://craftcms.com/support/entry-type-templates" rel="nofollow noreferrer">support article</a> as a guide and I'm stuck on what I'm doing wrong.</p>

<p>I have an "events" section, and I would like to use a different template for one the entries.  I've created a new entry type in the "events" section and gave it the handle "summerpreview."  I created a template in the "events" subfolder: "_types" entitled: "summerpreview.html."  That template uses the include tag: </p>

<pre><code>{% include "events/_types/" ~ summerpreview.html %}
</code></pre>

<p>I've created an entry inside the "events" section using the "summer preview" entry type and gave it the slug of "summerpreview."</p>

<p>What am I missing here?  The entry pulls using the default "events" template and not the "summerpreview."  What do I need to do for this event to use "summerpreview" template?</p>

<templating><entries>
Using multiple Templates per section
# Using multiple Templates per section

(Asked by: username_0 on 2018-03-23)

I'm using this support article as a guide and I'm stuck on what I'm doing wrong.
I have an "events" section, and I would like to use a different template for one the entries.  I've created a new entry type in the "events" section and gave it the handle "summerpreview."  I created a template in the "events" subfolder: "_types" entitled: "summerpreview.html."  That template uses the include tag: 
{% include "events/_types/" ~ summerpreview.html %}

I've created an entry inside the "events" section using the "summer preview" entry type and gave it the slug of "summerpreview."
What am I missing here?  The entry pulls using the default "events" template and not the "summerpreview."  What do I need to do for this event to use "summerpreview" template?

**Tags:** templating, entries

---

## 1 answers

### Answer by username_1 on 2018-03-23. Score: 3 | Accepted answer

You need to allow the entry.type value to be part of the include path...
{% include "events/_types/" ~ entry.type %}

Since your entry.type is "summerpreview", that will be parsed out like this...
{% include "events/_types/summerpreview" %}

With Craft, you don't need to specify the .html extension, so this include should work perfectly.

As a side note... I'd recommend turning on devMode locally. It would have thrown an error, telling you that summerpreview is not a legitimate variable.

What Dev Mode Does


---

