<p>This makes more sense :)</p>

<p>So basically, you want to have info from one entry on multiple pages and your problem is that in the section settings, you can only define 1 template for an entry.</p>

<p>One way to go about this is to create your own urls when clicking on an entry where you add the {slug} of your entry to the url, something like this: <code>{siteUrl}/episode-guide/recap/{entry.slug}</code></p>

<p>You can create a <a href="https://craftcms.com/docs/routing#dynamic-routes" rel="nofollow noreferrer">dynamic route</a> for this url that takes you to (for example) the recap.html template. Here you just get the last segment (being the slug) and retrieve the correct entry from your database and show only the recap info.</p>

<pre><code>{% set entrySlug = craft.request.lastSegment() %}
{% set entry = craft.entries.section("sectionName").slug(entrySlug) %}
</code></pre>

CC BY-SA 3.0
2017-02-08T14:59:32.517Z
2017-02-08T14:59:32.517Z
Tom De Smet
<p>I create a code for TV show database, but I have a big problem.
Please see the image
I want to access one entry(post) with some data from some templates.
But I don't know how to create any code or settings in the sections area.</p>

<p>Any advice or give me the url if there is another topic?</p>

<p>image
<a href="https://i.sstatic.net/oKNtu.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/oKNtu.jpg" alt="enter image description here"></a></p>

CC BY-SA 3.0
2017-01-30T14:04:55.630Z
Maybe it's me, but this reads like gibberish. Please clean up your question first and make it a bit more clear for us to understad what you're trying to do.
Tom De Smet
CC BY-SA 3.0
2017-01-30T23:35:33.717Z
I agree with @TomDeSmet... it's _very_ hard to tell what you are describing & asking in this question. Please rewrite it to be more coherent, and use code formatting where appropriate.
Lindsey D
CC BY-SA 3.0
2017-02-01T00:35:49.897Z
Sorry for my non-native English writing. So I want to display the different page by 2 templates like _entry.html like news. I want to share the entries News. The craft displays the different pages by/from index.html but the _entry.html by {slug} on setting the channel/structure doesn't display. Right?  I will modify my questions and add the images later.
tetsujikenny
<url><sections><slug><settings>
How to make a code/settings for accessing the one database from 2 different html files with {slug}
# How to make a code/settings for accessing the one database from 2 different html files with {slug}

(Asked by: username_0 on 2017-01-30)

I create a code for TV show database, but I have a big problem.
Please see the image
I want to access one entry(post) with some data from some templates.
But I don't know how to create any code or settings in the sections area.

Any advice or give me the url if there is another topic?

image
[![enter image description here](https://i.sstatic.net/oKNtu.jpg)](https://i.sstatic.net/oKNtu.jpg)

**Tags:** url, sections, slug, settings
> **Comments:**
> **username_1**: Maybe it's me, but this reads like gibberish. Please clean up your question first and make it a bit more clear for us to understad what you're trying to do.  
> **username_2**: I agree with @TomDeSmet... it's _very_ hard to tell what you are describing & asking in this question. Please rewrite it to be more coherent, and use code formatting where appropriate.  
> **username_0**: Sorry for my non-native English writing. So I want to display the different page by 2 templates like _entry.html like news. I want to share the entries News. The craft displays the different pages by/from index.html but the _entry.html by {slug} on setting the channel/structure doesn't display. Right?  I will modify my questions and add the images later.  

---

## 1 answers

### Answer by username_1 on 2017-02-08. Score: 2

This makes more sense :)
So basically, you want to have info from one entry on multiple pages and your problem is that in the section settings, you can only define 1 template for an entry.
One way to go about this is to create your own urls when clicking on an entry where you add the {slug} of your entry to the url, something like this: {siteUrl}/episode-guide/recap/{entry.slug}
You can create a dynamic route for this url that takes you to (for example) the recap.html template. Here you just get the last segment (being the slug) and retrieve the correct entry from your database and show only the recap info.
{% set entrySlug = craft.request.lastSegment() %}
{% set entry = craft.entries.section("sectionName").slug(entrySlug) %}


---

