<p>Nevermind - had a typo in my template code. Using "descendantOf" works as advertised!</p>

CC BY-SA 4.0
2020-06-09T14:40:20.613Z
Feel free to post your code and mark your answer to help others.
RitterKnight
CC BY-SA 4.0
2020-06-08T23:09:04.223Z
2020-06-08T23:09:04.223Z
Roi Agneta
<p>I can't find anything in the Craft 3 docs that explains templating for a structure entry. What I want to do is show level 1 entries with their associated level 2 entries in a simple list type organization. </p>

<p>I was able to do that with Craft 2 by using <code>{% set subItems = entry.children %}</code> where entry was set to level 1 entries, but that does not work.</p>

<p>I can't figure out how to associate levels with parents/children. Am I missing something in the docs? Thanks for any help!</p>

<structure>
Templating for Structures
# Templating for Structures

(Asked by: username_0 on 2020-06-08)

I can't find anything in the Craft 3 docs that explains templating for a structure entry. What I want to do is show level 1 entries with their associated level 2 entries in a simple list type organization.

I was able to do that with Craft 2 by using `{% set subItems = entry.children %}` where entry was set to level 1 entries, but that does not work.

I can't figure out how to associate levels with parents/children. Am I missing something in the docs? Thanks for any help!

**Tags:** structure

---

## 1 answers

### Answer by username_0 on 2020-06-08. Score: 1

Nevermind - had a typo in my template code. Using "descendantOf" works as advertised!

> **Comments:**
> **username_1**: Feel free to post your code and mark your answer to help others.  

---

