Answers.Body: <pre><code>{{ craft.app.getSections().getSectionByHandle('dogs').name }} 
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-07T18:04:49.423Z
Answers.LastActivityDate: 2018-05-07T18:04:49.423Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I have an <code>index page</code> for articles in a <code>section</code>.  Call the section "dogs."</p>
  
  <p><strong>How do I template to output the name of the <code>section</code>?</strong>  This is <code>not</code> an entry, but an index page.</p>
  
Tags: <templating>
Title: How do I print the name of the Section on an index page
ThreadText: # How do I print the name of the Section on an index page
  
  (Asked by: username_0 on 2018-05-07)
  
  I have an `index page` for articles in a `section`. Call the section "dogs."
  
  **How do I template to output the name of the `section`?** This is `not` an entry, but an index page.
  
  **Tags:** templating
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-07. Score: 2 | Accepted answer
  
  ```
  {{ craft.app.getSections().getSectionByHandle('dogs').name }} 
  
  ```
  
  
  ---
  
  