Answers.Body: <p>Certainly possible and simple too :)</p>
  
  <p>First in the CP go to:</p>
  
  <pre><code>Category-&gt;Settings 
  </code></pre>
  
  <p>You'll want to set your <code>Category URL formats</code> and <code>Category Template</code> to reflect your URL scheme and desired location of your template file.</p>
  
  <p>Then create an _entry template in the directory you specified above for example <code>/categories/_entry.twig</code></p>
  
  <p>When you head to the URL above your template will load with an entry variable that reflects whichever category you are browsing to.</p>
  
  <p>In the <code>_entry</code> template to get all the entries related to the current category:</p>
  
  <pre><code>{% set entries = craft.entries.relatedTo( entry ) %}
  </code></pre>
  
  <p>(note this will default to 100 entries if you want more append <code>.limit(101)</code> etc. or <code>.limit(null)</code> to get them all.</p>
  
  <p>and finally to load a layout based on the entry.type simply:</p>
  
  <pre><code>{% include ["_layouts/types/" ~ entry.type, "_layouts/types/default"] %}
  </code></pre>
  
  <p>where the default layout is for all entries that don't need any special layout.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-13T04:54:54.027Z
Answers.LastActivityDate: 2015-08-13T04:54:54.027Z
Answers.UserDisplayName: j00lz
Body: <p>I have a website with a shop section with the following URL structure: <code>homepage/shop/category/the-product</code>.</p>
  
  <p>I would like to add a page after the category to filter between post types within that category, and I want to be able to access it through the entry type slug in the URL.</p>
  
  <p>I also need to change the template to match the Entry Type.</p>
  
  <p>If this is possible, how do I do it?</p>
  
  <p>Thanks ahead!</p>
  
Tags: <templating><entry-type><category>
Title: Is it possible to create a page that shows only a specific post type with its own url?
ThreadText: # Is it possible to create a page that shows only a specific post type with its own url?
  
  (Asked by: username_0 on 2015-07-31)
  
  I have a website with a shop section with the following URL structure: `homepage/shop/category/the-product`.
  
  I would like to add a page after the category to filter between post types within that category, and I want to be able to access it through the entry type slug in the URL.
  
  I also need to change the template to match the Entry Type.
  
  If this is possible, how do I do it?
  
  Thanks ahead!
  
  **Tags:** templating, entry-type, category
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-13. Score: 1
  
  Certainly possible and simple too :)
  
  First in the CP go to:
  
  ```
  Category->Settings 
  
  ```
  
  You'll want to set your `Category URL formats` and `Category Template` to reflect your URL scheme and desired location of your template file.
  
  Then create an \_entry template in the directory you specified above for example `/categories/_entry.twig`
  
  When you head to the URL above your template will load with an entry variable that reflects whichever category you are browsing to.
  
  In the `_entry` template to get all the entries related to the current category:
  
  ```
  {% set entries = craft.entries.relatedTo( entry ) %}
  
  ```
  
  (note this will default to 100 entries if you want more append `.limit(101)` etc. or `.limit(null)` to get them all.
  
  and finally to load a layout based on the entry.type simply:
  
  ```
  {% include ["_layouts/types/" ~ entry.type, "_layouts/types/default"] %}
  
  ```
  
  where the default layout is for all entries that don't need any special layout.
  
  
  ---
  
  