Answers.Body: <pre><code>{{ entry.section }} - {{ entry.title }}
  </code></pre>
  
  <p>Here are a list of properties you can get from the Entry model:</p>
  
  <p><a href="https://craftcms.com/docs/templating/entrymodel" rel="nofollow noreferrer">https://craftcms.com/docs/templating/entrymodel</a></p>
  
  <p>So you could do</p>
  
  <pre><code>{% set title = "#{entry.section} | #{entry.title}" %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-18T13:16:42.393Z
Answers.LastActivityDate: 2016-11-18T13:16:42.393Z
Answers.UserDisplayName: Matt Wilcox
Body: <p>I can get Craft to generate page titles for entries and individual pages using:</p>
  
  <pre><code>{% set title = entry.title %}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{% set title = "News and Insights" %}
  </code></pre>
  
  <p>But I need to be able to generate a full page title for an entry, that includes the section name, for example:</p>
  
  <p>News Item | News and Insights | Company Name</p>
  
  <p>Can anyone please explain how...?</p>
  
  <p>Many thanks!</p>
  
Tags: <set>
Title: How to include a section name in the page title?
ThreadText: # How to include a section name in the page title?
  
  (Asked by: username_0 on 2016-11-18)
  
  I can get Craft to generate page titles for entries and individual pages using:
  
  ```
  {% set title = entry.title %}
  
  ```
  
  and
  
  ```
  {% set title = "News and Insights" %}
  
  ```
  
  But I need to be able to generate a full page title for an entry, that includes the section name, for example:
  
  News Item | News and Insights | Company Name
  
  Can anyone please explain how...?
  
  Many thanks!
  
  **Tags:** set
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-18. Score: 4 | Accepted answer
  
  ```
  {{ entry.section }} - {{ entry.title }}
  
  ```
  
  Here are a list of properties you can get from the Entry model:
  
  <https://craftcms.com/docs/templating/entrymodel>
  
  So you could do
  
  ```
  {% set title = "#{entry.section} | #{entry.title}" %}
  
  ```
  
  
  ---
  
  