Answers.Body: <p>Depending on the rest of your site structure, yes you can set these up as Singles.</p>
  
  <p>Your other option is to use an Entry Type inside a 'pages' Structure, and in that template you list the first 6 categories in a defined Category Group (possibly selected in a dropdown, or through <code>craft.request.segment()</code> )</p>
  
  <p>Documentation link on how Craft looks for index templates in case it's useful: <a href="https://docs.craftcms.com/v3/templates.html#index-templates" rel="nofollow noreferrer">https://docs.craftcms.com/v3/templates.html#index-templates</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T17:14:16.067Z
Answers.Text: I found this question looking for a section id variable on the section/index template. It's not defined by default, but must be set manually.
Answers.UserDisplayName: ponies
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-02-07T15:33:25.110Z
Answers.LastActivityDate: 2018-05-30T23:39:51.013Z
Answers.LastEditDate: 2018-05-30T23:39:51.013Z
Answers.UserDisplayName: darylknight
Answers.Body: <p>Unless taking the structure route because there's a need for multiple index pages, I generally create a Single for each index page.</p>
  
  <p>In your case I'd probably create two singles called 'Markets / Overview' and 'Pages / Overview'. I wouldn't display those titles necessarily in the template but I've found displaying 'Name of section / Overview' within the control panel helps the client.</p>
  
  <p>This assumes the index page needs to be editable at all, but normally I find I need a couple of meta fields on every page on the site.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-08T11:32:17.430Z
Answers.LastActivityDate: 2017-02-09T09:01:17.777Z
Answers.LastEditDate: 2017-02-09T09:01:17.777Z
Answers.UserDisplayName: Clive Portman
Body: <p>Site construct question...</p>
  
  <p>I have categories.   Craft knows where to find the template for a category - i.e. <code>markets/{slug}</code>.   </p>
  
  <p>But I also have a Market<strong>s</strong> (categories) page with the first 6 entries for each category (market).  The template is <code>markets/index.html</code>.  </p>
  
  <p>The same holds true for and index page with all my entries.  Craft knows where to find an entry <code>posts/_entry</code> - but what about the <code>posts/index</code> page? </p>
  
  <p><strong>How should these pages be setup/defined in Craft - should they be a single page or something else?</strong></p>
  
  <p><em>Background - Right now, they aren't defined in Craft - but I realize that I probably need to add them to work with an SEO plugin.</em></p>
  
Tags: <templating><sections>
Title: How should an index page be setup/defined in Craft?
ThreadText: # How should an index page be setup/defined in Craft?
  
  (Asked by: username_0 on 2017-02-07)
  
  Site construct question...
  
  I have categories. Craft knows where to find the template for a category - i.e. `markets/{slug}`.
  
  But I also have a Market**s** (categories) page with the first 6 entries for each category (market). The template is `markets/index.html`.
  
  The same holds true for and index page with all my entries. Craft knows where to find an entry `posts/_entry` - but what about the `posts/index` page?
  
  **How should these pages be setup/defined in Craft - should they be a single page or something else?**
  
  *Background - Right now, they aren't defined in Craft - but I realize that I probably need to add them to work with an SEO plugin.*
  
  **Tags:** templating, sections
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-02-07. Score: 4
  
  Depending on the rest of your site structure, yes you can set these up as Singles.
  
  Your other option is to use an Entry Type inside a 'pages' Structure, and in that template you list the first 6 categories in a defined Category Group (possibly selected in a dropdown, or through `craft.request.segment()` )
  
  Documentation link on how Craft looks for index templates in case it's useful: <https://docs.craftcms.com/v3/templates.html#index-templates>.
  
  > **Comments:**
  > **username_2**: I found this question looking for a section id variable on the section/index template. It's not defined by default, but must be set manually.  
  
  ---
  
  ### Answer by username_3 on 2017-02-08. Score: 2
  
  Unless taking the structure route because there's a need for multiple index pages, I generally create a Single for each index page.
  
  In your case I'd probably create two singles called 'Markets / Overview' and 'Pages / Overview'. I wouldn't display those titles necessarily in the template but I've found displaying 'Name of section / Overview' within the control panel helps the client.
  
  This assumes the index page needs to be editable at all, but normally I find I need a couple of meta fields on every page on the site.
  
  
  ---
  
  