<p>If they can live at different URL's, you could setup multiple routes under Settings->Routes. Give them different URL structures like so:</p>

<pre><code>blog/slug loads mytemplatefolder/blog_template
another-url/slug loads mytemplatefolder/another_template
</code></pre>

CC BY-SA 3.0
2014-07-08T12:58:07.720Z
Works like a charm, never used routes before. Thanks for the answer!
Rob Erskine
CC BY-SA 3.0
2014-07-08T13:28:44.673Z
Actually, quick followup: I'm getting the following error: Variable "entry" does not exist.

When I try and set the variable entry on my own, it's coming up empty: {% set entry = craft.entries.section('brand').slug(slug) %} . 

Anything special I have to do when using routes to get entry to persist?
Rob Erskine
CC BY-SA 3.0
2014-07-08T13:42:43.690Z
Are you getting the slug from the segment? Like so: {% set pageSlug = craft.request.getSegment(2) %}
{% set pageEntry = craft.entries.section('brand').slug(pageSlug).find() %}
jpea
CC BY-SA 3.0
2014-07-08T13:57:00.613Z
Pretty close to what I had, getting a different error now when trying to echo out just the title. {{ pageEntry.title }} gives me a 'Key "title" for array with keys "0" does not exist' error.
Rob Erskine
CC BY-SA 3.0
2014-07-08T14:15:44.737Z
You still have to do a for loop, even if it's just 1 entry. {% for entry in pageEntry %} {{ entry.title }} {% endfor %}
jpea
CC BY-SA 3.0
2014-07-08T12:53:40.223Z
2014-07-08T12:53:40.223Z
jpea
<p>Is there a way to have multiple entry templates per entry?</p>

<p>I'd like to create two different templates that display the same content/data in different ways.</p>

<templating><routes>
Multiple entry templates per entry
# Multiple entry templates per entry

(Asked by: username_0 on 2014-07-08)

Is there a way to have multiple entry templates per entry?

I'd like to create two different templates that display the same content/data in different ways.

**Tags:** templating, routes


---

## 1 answers

### Answer by username_1 on 2014-07-08. Score: 4 | Accepted answer

If they can live at different URL's, you could setup multiple routes under Settings->Routes. Give them different URL structures like so:
blog/slug loads mytemplatefolder/blog_template
another-url/slug loads mytemplatefolder/another_template

> **Comments:**
> **username_0**: Works like a charm, never used routes before. Thanks for the answer!  
> **username_0**: Actually, quick followup: I'm getting the following error: Variable "entry" does not exist.  When I try and set the variable entry on my own, it's coming up empty: {% set entry = craft.entries.section('brand').slug(slug) %} .   Anything special I have to do when using routes to get entry to persist?  
> **username_1**: Are you getting the slug from the segment? Like so: {% set pageSlug = craft.request.getSegment(2) %} {% set pageEntry = craft.entries.section('brand').slug(pageSlug).find() %}  
> **username_0**: Pretty close to what I had, getting a different error now when trying to echo out just the title. {{ pageEntry.title }} gives me a 'Key "title" for array with keys "0" does not exist' error.  
> **username_1**: You still have to do a for loop, even if it's just 1 entry. {% for entry in pageEntry %} {{ entry.title }} {% endfor %}  

---

