Answers.Body: <p>The structure type is stored in the section, not in the entry type. <code>entry.type</code> doesn't return the name, it returns the entry type as an object</p>
  
  <pre><code>{% set structureType = entry.getSection().type %}
  </code></pre>
  
  <p>It will return a string that can have the following values. </p>
  
  <pre><code>const TYPE_SINGLE = 'single';
  const TYPE_CHANNEL = 'channel';
  const TYPE_STRUCTURE = 'structure';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-28T12:42:38.943Z
Answers.LastActivityDate: 2018-06-28T12:42:38.943Z
Answers.UserDisplayName: Robin Schambach
Body: <p>To be more specific, I would like to know if an entry is a Single or part of a Structure or Channel.</p>
  
  <p><code>entry.type</code> seems to return the name of the single or section.</p>
  
  <p>Is there a way to retrieve this information for every entry?</p>
  
Tags: <craft3>
Title: Is there a way to retrieve the type of an entry?
ThreadText: # Is there a way to retrieve the type of an entry?
  
  (Asked by: username_0 on 2018-06-28)
  
  To be more specific, I would like to know if an entry is a Single or part of a Structure or Channel.
  
  `entry.type` seems to return the name of the single or section.
  
  Is there a way to retrieve this information for every entry?
  
  **Tags:** craft3
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-28. Score: 3 | Accepted answer
  
  The structure type is stored in the section, not in the entry type. `entry.type` doesn't return the name, it returns the entry type as an object
  
  ```
  {% set structureType = entry.getSection().type %}
  
  ```
  
  It will return a string that can have the following values.
  
  ```
  const TYPE_SINGLE = 'single';
  const TYPE_CHANNEL = 'channel';
  const TYPE_STRUCTURE = 'structure';
  
  ```
  
  
  ---
  
  