Answers.Body: <p>Welp.... turns out I was using CSS Grid for my rendered items, and since it was a gallery items without images were collapsing the grid.</p>
  <p>Problem solved.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-19T14:00:29.580Z
Answers.LastActivityDate: 2021-11-19T14:00:29.580Z
Answers.UserDisplayName: Adrian
Body: <p> I have a structure with content:</p>
  <ul>
  <li>Item A
  <ul>
  <li>Item AA</li>
  </ul>
  </li>
  <li>Item B
  <ul>
  <li>Item BB</li>
  </ul>
  </li>
  </ul>
  <p>I get nothing when I explicitly call the first level with <code>.level('1')</code>:</p>
  <p><code>{% set entries = craft.entries().section('pages').orderBy('title asc').level('1').all() %}</code></p>
  <p>But I DO get the second level when I explicitly select it with <code>.level('2')</code>:</p>
  <p><code>{% set entries = craft.entries().section('pages').orderBy('title asc').level('2').all() %}</code></p>
  <p>Any thoughts on what could be wrong? Trying to just get the first level.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-19T08:38:10.990Z
Comments.Text: Are the entries published, not expired, not pending etc?
Comments.UserDisplayName: MoritzLost
Tags: <structure>
Title: Can't get first level of a structure
ThreadText: # Can't get first level of a structure
  
  (Asked by: username_0 on 2021-11-18)
  
  I have a structure with content:
  
  * Item A
    + Item AA
  * Item B
    + Item BB
  
  I get nothing when I explicitly call the first level with `.level('1')`:
  
  `{% set entries = craft.entries().section('pages').orderBy('title asc').level('1').all() %}`
  
  But I DO get the second level when I explicitly select it with `.level('2')`:
  
  `{% set entries = craft.entries().section('pages').orderBy('title asc').level('2').all() %}`
  
  Any thoughts on what could be wrong? Trying to just get the first level.
  
  **Tags:** structure
  
  > **Comments:**
  > **username_1**: Are the entries published, not expired, not pending etc?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-11-19. Score: 1
  
  Welp.... turns out I was using CSS Grid for my rendered items, and since it was a gallery items without images were collapsing the grid.
  
  Problem solved.
  
  
  ---
  
  