<p>Typically, I will create a single for each product "home" page, and then a channel for my products or sub-pages. I will generally use a channel vs. a structure unless I know I want to manually control the order or nest entries.</p>

<p>Let's say I have a website about automobiles. I would create a section (single) called <code>cars</code>. That section would have the url of <code>site.com/cars</code> and the template would be located at <code>/templates/cars/index.html</code>. This is the template that would be responsible for pulling in all of the cars I have.</p>

<p>This is where things can get tricky, or not...all depends on how you want to roll.</p>

<p>If you created a channel called <code>automobiles</code> (or whatever you like), you could enter each car you have as an entry within the channel. Then on your <code>cars</code> single, you can tell Craft to loop through all entries in the <code>automobiles</code> channel.</p>

<p>Since you can't nest a channel entry, I would use categories to "tag" your cars. For example, I would create a category called <code>Sports Cars</code> and relate any sports cars I have to that category. You could also create a category for <code>Trucks</code> or <code>Vans</code> to help group/classify each car you had.</p>

<p>This would also allow you to create sudo-landing pages for each type of car. For example, <code>site.com/cars/sports-cars</code> would get all entries that are tagged as a sports car. You could do this for trucks, or you could even divide categories up into <code>trucks/4-wheel-drive</code> so not only would a truck show when I requested trucks, it would also show in my 4-wheel-drive options.</p>

<p>From an authoring experience, this is great. I don't care specifically where I have to create the entry - all I know is that I have a car, and it goes in the cars "bucket" (automobiles channel). It's within that entry (the car entry itself) you are choosing where it is available to the end user.</p>

<p>You could even create different entry types for the kind of automobile you are creating. This would allow you to have a cleaner screen as some fields don't apply for all automobiles.</p>

<p>To illustrate a structure, think about the staff who is in charge of this car-selling company.</p>

<p>I would create a structure called <code>staff</code>. It would have the url of <code>site.com/about/staff</code> and a template of <code>/templates/about/staff/_entry</code></p>

<p>From there you could create an entry for each person. You can then create "parent" entries for the hierarchy of the office.</p>

<p>For example:</p>

<pre><code>- Management
    |-- Bob McKenzie
    |-- Doug McKenzie
- Sales Team
    |-- Tyler Durden
    |-- Agent Smith
</code></pre>

<p>By using a structure here, you can not only manually set the order of which group (management or sales) is first, but you can also arrange the order of the team members within.</p>

<p>So to answer your question directly:</p>

<blockquote>
  <p>I would like to display a parent page which lists all products, but then 6 sub-pages which show only the products in that category. I use the word category without specifically meaning the Craft CMS category</p>
</blockquote>

<p>I would do this:</p>

<p>Create a single and give it a name of the url that you would like to show all products on. To use my example, this would be <code>cars</code>.</p>

<p>Create a Category to relate your products to Ex: <code>Sports Cars</code>.</p>

<p>Then create a channel - called <code>Products</code>. Every product will go here. When you are creating these product entries, use a Channel Field type so you can select which category the given product belongs to (Sports Cars).</p>

<p>Then on your <code>cars</code> page, you would tell Craft "Hey, get every single product".
If I navigate to <code>site.com/cars/sports-cars</code> you can tell Craft "Hey, only get me cars that are related to sports cars".</p>

<p>Kind of a long-winded answer, hope it helps get you going.</p>

CC BY-SA 3.0
2016-05-06T13:41:13.400Z
Great answer - thank you. I managed to get something working before I read your answer by using different entryTypes on my channel. I then use routes to point back to my template which checks the URL path (the entry type handle) and loads the sub-set of products. Your solution seems to be a bit more flexible so I will have a go at that next. Thanks again
Alexander Holsgrove
CC BY-SA 3.0
2016-05-06T13:44:24.693Z
You are very welcome! Personally, I think the difficulty lies in the fact that there are so many ways you can do things. You never really know you're headed down the right path until you try it and run into something that causes you to try another direction.
Damon
CC BY-SA 3.0
2016-05-05T21:21:08.370Z
2016-05-05T21:21:08.370Z
Damon
<p>We are currently updating a brochure website, separating a single list of products into a series of sub-categories. Currently, we have a "single" section to display all products, and then a "channel" which has two entry types (products &amp; accessories). I am trying to work out how best to create the new site structure.</p>

<p>I would like to display a parent page which lists all products, but then 6 sub-pages which show only the products in that category. I use the word category without specifically meaning the Craft CMS category.</p>

<p>I have read other posts such as <a href="https://craftcms.stackexchange.com/questions/10692/structures-vs-categories-for-product-catalog">Structure(s) vs. Categories for product catalog</a> and <a href="https://craftcms.stackexchange.com/questions/8571/difference-between-categories-and-structures">Difference between categories and structures</a> but these don't seem to help. There seems to be a bit of confusion surrounding Craft categories, structures and using singles to divide the content.</p>

<p>How could we re-organise the existing content into this new structure?</p>

<categories><structure>
Product Categories, Structures and Channels
# Product Categories, Structures and Channels

(Asked by: username_0 on 2016-05-05)

We are currently updating a brochure website, separating a single list of products into a series of sub-categories. Currently, we have a "single" section to display all products, and then a "channel" which has two entry types (products & accessories). I am trying to work out how best to create the new site structure.

I would like to display a parent page which lists all products, but then 6 sub-pages which show only the products in that category. I use the word category without specifically meaning the Craft CMS category.

I have read other posts such as [Structure(s) vs. Categories for product catalog](https://craftcms.stackexchange.com/questions/10692/structures-vs-categories-for-product-catalog) and [Difference between categories and structures](https://craftcms.stackexchange.com/questions/8571/difference-between-categories-and-structures) but these don't seem to help. There seems to be a bit of confusion surrounding Craft categories, structures and using singles to divide the content.

How could we re-organise the existing content into this new structure?

**Tags:** categories, structure

---

## 1 answers

### Answer by username_1 on 2016-05-05. Score: 5 | Accepted answer

Typically, I will create a single for each product "home" page, and then a channel for my products or sub-pages. I will generally use a channel vs. a structure unless I know I want to manually control the order or nest entries.
Let's say I have a website about automobiles. I would create a section (single) called cars. That section would have the url of site.com/cars and the template would be located at /templates/cars/index.html. This is the template that would be responsible for pulling in all of the cars I have.
This is where things can get tricky, or not...all depends on how you want to roll.
If you created a channel called automobiles (or whatever you like), you could enter each car you have as an entry within the channel. Then on your cars single, you can tell Craft to loop through all entries in the automobiles channel.
Since you can't nest a channel entry, I would use categories to "tag" your cars. For example, I would create a category called Sports Cars and relate any sports cars I have to that category. You could also create a category for Trucks or Vans to help group/classify each car you had.
This would also allow you to create sudo-landing pages for each type of car. For example, site.com/cars/sports-cars would get all entries that are tagged as a sports car. You could do this for trucks, or you could even divide categories up into trucks/4-wheel-drive so not only would a truck show when I requested trucks, it would also show in my 4-wheel-drive options.
From an authoring experience, this is great. I don't care specifically where I have to create the entry - all I know is that I have a car, and it goes in the cars "bucket" (automobiles channel). It's within that entry (the car entry itself) you are choosing where it is available to the end user.
You could even create different entry types for the kind of automobile you are creating. This would allow you to have a cleaner screen as some fields don't apply for all automobiles.
To illustrate a structure, think about the staff who is in charge of this car-selling company.
I would create a structure called staff. It would have the url of site.com/about/staff and a template of /templates/about/staff/_entry
From there you could create an entry for each person. You can then create "parent" entries for the hierarchy of the office.
For example:
- Management
    |-- Bob McKenzie
    |-- Doug McKenzie
- Sales Team
    |-- Tyler Durden
    |-- Agent Smith

By using a structure here, you can not only manually set the order of which group (management or sales) is first, but you can also arrange the order of the team members within.
So to answer your question directly:

I would like to display a parent page which lists all products, but then 6 sub-pages which show only the products in that category. I use the word category without specifically meaning the Craft CMS category

I would do this:
Create a single and give it a name of the url that you would like to show all products on. To use my example, this would be cars.
Create a Category to relate your products to Ex: Sports Cars.
Then create a channel - called Products. Every product will go here. When you are creating these product entries, use a Channel Field type so you can select which category the given product belongs to (Sports Cars).
Then on your cars page, you would tell Craft "Hey, get every single product".
If I navigate to site.com/cars/sports-cars you can tell Craft "Hey, only get me cars that are related to sports cars".
Kind of a long-winded answer, hope it helps get you going.

> **Comments:**
> **username_0**: Great answer - thank you. I managed to get something working before I read your answer by using different entryTypes on my channel. I then use routes to point back to my template which checks the URL path (the entry type handle) and loads the sub-set of products. Your solution seems to be a bit more flexible so I will have a go at that next. Thanks again  
> **username_1**: You are very welcome! Personally, I think the difficulty lies in the fact that there are so many ways you can do things. You never really know you're headed down the right path until you try it and run into something that causes you to try another direction.  

---

