<p>I don't think that carlcs was suggesting that you incorporate individual blog posts into the 'pages' structure. He was only suggesting that you place those pages into the structure that you would want in your main navigation (using different <code>entryTypes</code> defined for each page layout); like your blog index page for example. In your case, what you would likely want to do (assuming you are following this strategy at all), is to create an entry for 'blog' in your structure, with a unique <code>entryType</code> called 'blogIndex' for example, and a matching template called '_blog.html' or '_blog.twig' which will be your blog landing/index page.</p>

<p>You would then create a channel for your individual blog entries, also called 'blog'.</p>

<p>In this way the urls will sync up nicely, such that the uri '/blog' will display your structure entry (which is designed to render, for example, a summary of the first 20 blog entries from your 'blog' channel); and the uri '/blog/my-blog-entry-title' will display your blog entry detail page from your 'blog' channel (assuming the blog entries are long enough that you even need a detail page).</p>

<p>Check out <a href="https://craftcms.stackexchange.com/a/6847/784">this answer</a> for a more specific example with code examples.</p>

CC BY-SA 3.0
2015-04-08T17:13:02.650Z
You definitely know how to explain things!
carlcs
CC BY-SA 3.0
2015-04-09T19:23:00.087Z
Thanks Dogulas, I'll give that a shot. I remember reading the other post you referenced, but for some reason it hasn't been coming up in my search!
rfoote
CC BY-SA 3.0
2015-04-09T19:40:49.883Z
Ok, I'm missing a critical piece here. This is what I have set up so far:

A Structure called 'pages' that has two entry types, 'page' and 'blogIndex'. Most of the pages on my site use the 'page' type, and I set up one entry in the structure using the 'blogIndex' type which would represent the blog index and nested it down in the hierarchy of my Structure.

I have a template at /templates/pages/_blog.twig that's supposed to represent the blog landing/index, but when visiting the URL for the blog index, it displays the default _entry.html template instead of the template I set up for the index.
rfoote
CC BY-SA 3.0
2015-04-09T20:37:00.580Z
I think I got it working, using the following technique: http://buildwithcraft.com/help/entry-type-templates Is this what you hand in mind Douglas? Was this the last piece I was missing?
rfoote
CC BY-SA 3.0
2015-04-10T02:05:42.073Z
Yes. Exactly. Sorry, I should have included that link as well. Glad you got it working.
Douglas McDonald
CC BY-SA 3.0
2017-03-03T17:32:30.723Z
In this set-up, how would you output breadcrumbs/navigation 'active' tabs for the structures/channels that are linked off the main 'pages' structure? Ie- can't a structure have more than one location pointing to it in the main 'pages' structure?
userAW
CC BY-SA 3.0
2017-03-16T19:26:10.257Z
@userAW You might want to set up a separate question for this. It really depends on how the linked channels/structures are set up. But generally: if there is a relationship defined, then you could use it to access the main 'pages' structure (using `relatedTo` for example); and if no relationship, then you could look up the pages entry using the uri segment (as you will probably know which segment is from 'pages').
Douglas McDonald
CC BY-SA 3.0
2015-04-08T17:01:06.070Z
2015-04-08T17:09:36.063Z
2017-04-13T12:51:00.303Z
Douglas McDonald
<p>I apologize for opening up a whole new question for this topic since it's been discussed a few times now, however I don't have enough rep yet to comment on the existing questions.</p>

<p>Regarding the answer to this question:</p>

<p><a href="https://craftcms.stackexchange.com/questions/4699/channel-index-page-linked-in-a-structure/4710">Channel index page linked in a structure</a></p>

<p>So what this answer is saying is that instead of having a whole separate channel for say, a blog, I should have it set up so that "Blog" is an entry type in my larger structure that also contains the various static pages for my site? if I'm understanding that correctly, doesn't the user lose out on some of the basic feature that a separate channel offers, such as not having to choose where in the structure hierarchy a new blog post should be?</p>

<structure><sections><entry-type>
Linking to channel via structure section
# Linking to channel via structure section

(Asked by: username_0 on 2015-04-08)

I apologize for opening up a whole new question for this topic since it's been discussed a few times now, however I don't have enough rep yet to comment on the existing questions.

Regarding the answer to this question:

[Channel index page linked in a structure](https://craftcms.stackexchange.com/questions/4699/channel-index-page-linked-in-a-structure/4710)

So what this answer is saying is that instead of having a whole separate channel for say, a blog, I should have it set up so that "Blog" is an entry type in my larger structure that also contains the various static pages for my site? if I'm understanding that correctly, doesn't the user lose out on some of the basic feature that a separate channel offers, such as not having to choose where in the structure hierarchy a new blog post should be?

**Tags:** structure, sections, entry-type

---

## 1 answers

### Answer by username_1 on 2015-04-08. Score: 2 | Accepted answer

I don't think that carlcs was suggesting that you incorporate individual blog posts into the 'pages' structure. He was only suggesting that you place those pages into the structure that you would want in your main navigation (using different `entryTypes` defined for each page layout); like your blog index page for example. In your case, what you would likely want to do (assuming you are following this strategy at all), is to create an entry for 'blog' in your structure, with a unique `entryType` called 'blogIndex' for example, and a matching template called '\_blog.html' or '\_blog.twig' which will be your blog landing/index page.

You would then create a channel for your individual blog entries, also called 'blog'.

In this way the urls will sync up nicely, such that the uri '/blog' will display your structure entry (which is designed to render, for example, a summary of the first 20 blog entries from your 'blog' channel); and the uri '/blog/my-blog-entry-title' will display your blog entry detail page from your 'blog' channel (assuming the blog entries are long enough that you even need a detail page).

Check out [this answer](https://craftcms.stackexchange.com/a/6847/784) for a more specific example with code examples.

> **Comments:**
> **username_2**: You definitely know how to explain things!  
> **username_0**: Thanks Dogulas, I'll give that a shot. I remember reading the other post you referenced, but for some reason it hasn't been coming up in my search!  
> **username_0**: Ok, I'm missing a critical piece here. This is what I have set up so far:  A Structure called 'pages' that has two entry types, 'page' and 'blogIndex'. Most of the pages on my site use the 'page' type, and I set up one entry in the structure using the 'blogIndex' type which would represent the blog index and nested it down in the hierarchy of my Structure.  I have a template at /templates/pages/_blog.twig that's supposed to represent the blog landing/index, but when visiting the URL for the blog index, it displays the default _entry.html template instead of the template I set up for the index.  
> **username_0**: I think I got it working, using the following technique: http://buildwithcraft.com/help/entry-type-templates Is this what you hand in mind Douglas? Was this the last piece I was missing?  
> **username_1**: Yes. Exactly. Sorry, I should have included that link as well. Glad you got it working.  
> **username_3**: In this set-up, how would you output breadcrumbs/navigation 'active' tabs for the structures/channels that are linked off the main 'pages' structure? Ie- can't a structure have more than one location pointing to it in the main 'pages' structure?  
> **username_1**: @userAW You might want to set up a separate question for this. It really depends on how the linked channels/structures are set up. But generally: if there is a relationship defined, then you could use it to access the main 'pages' structure (using `relatedTo` for example); and if no relationship, then you could look up the pages entry using the uri segment (as you will probably know which segment is from 'pages').  

---

