Answers.Body: <p>I believe this is the correct behaviour - at the time of writing, the core difference between categories and structure sections is that the relationship data for categories includes all the ancestor items, whereas a relationship to a child entry in a structure section only relates to that single item. In your particular use case of States &gt; Cities I would probably use a category group instead of a structure section.</p>
  <p>If that's not feasible, you could add an inline template as a UI Element in the field layout, in which you can use Twig to show a link to the parent.</p>
  <p><a href="https://i.sstatic.net/6MMk1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6MMk1.png" alt="screenshot of UI Elements interface to select a template in a field layout" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-14T20:10:38.910Z
Answers.Text: I see but is there a way to make it look the native way just like the categories do? https://i.imgur.com/YKPQF8j.png  -  {{ element.location.one().parent.title }}
Answers.UserDisplayName: Mark H.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-14T10:04:30.250Z
Answers.LastActivityDate: 2022-07-14T10:04:30.250Z
Answers.UserDisplayName: James Smith
Body: <p>Not sure whether it's a bug or the correct behavior. How do I see the parent category just like the categories do?</p>
  <p><a href="https://i.sstatic.net/JZEgH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JZEgH.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/A5nW1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A5nW1.png" alt="enter image description here" /></a></p>
  <p>Entries field related to the category group (another project)</p>
  <p><a href="https://i.sstatic.net/cdEsE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cdEsE.png" alt="enter image description here" /></a></p>
  
Tags: <categories><structure>
Title: Entries field within structure
ThreadText: # Entries field within structure
  
  (Asked by: username_0 on 2022-07-14)
  
  Not sure whether it's a bug or the correct behavior. How do I see the parent category just like the categories do?
  
  [![enter image description here](https://i.sstatic.net/JZEgH.png)](https://i.sstatic.net/JZEgH.png)
  
  [![enter image description here](https://i.sstatic.net/A5nW1.png)](https://i.sstatic.net/A5nW1.png)
  
  Entries field related to the category group (another project)
  
  [![enter image description here](https://i.sstatic.net/cdEsE.png)](https://i.sstatic.net/cdEsE.png)
  
  **Tags:** categories, structure
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-07-14. Score: 1
  
  I believe this is the correct behaviour - at the time of writing, the core difference between categories and structure sections is that the relationship data for categories includes all the ancestor items, whereas a relationship to a child entry in a structure section only relates to that single item. In your particular use case of States > Cities I would probably use a category group instead of a structure section.
  
  If that's not feasible, you could add an inline template as a UI Element in the field layout, in which you can use Twig to show a link to the parent.
  
  [![screenshot of UI Elements interface to select a template in a field layout](https://i.sstatic.net/6MMk1.png)](https://i.sstatic.net/6MMk1.png)
  
  > **Comments:**
  > **username_0**: I see but is there a way to make it look the native way just like the categories do? https://i.imgur.com/YKPQF8j.png  -  {{ element.location.one().parent.title }}  
  
  ---
  
  