<p>This was an ordering mistake. I didn't setup my grid properly for the loop that has to take place.</p>

CC BY-SA 3.0
2014-12-11T02:44:01.057Z
2014-12-11T02:44:01.057Z
misteroptimist
<p>I hope I worded the title correctly. I'm trying to output whatever structure's page I'm on - I want the descendants of whatever page that is. I'm currently using this, which at first appeared to work, but then my css styling doesn't get applied to any of the other entries.  See below:</p>

<pre><code>&lt;div class="large-4 columns"&gt;
  {% set messages = entry.getChildren() %}
     {% if messages | length %}
       &lt;ul&gt;
        {% for entry in messages %}
          {% for image in entry.seriesArtwork %}
            &lt;img src="{{image.getURL('seriesThumbnail')}}"&gt;
          {% endfor %}
 &lt;/div&gt;
    &lt;div class="large-8 columns"&gt;
      &lt;div id="message-title"&gt;{{ entry.title }}&lt;/div&gt;
        &lt;div id="message-speaker"&gt; {{ entry.postDate|date('M j, Y')}} • {{ entry.speaker }}&lt;/div&gt;
        &lt;/div&gt;

    &lt;hr&gt;
      {% endfor %}
{% endif %}
</code></pre>

<p><img src="https://i.sstatic.net/nksL9.jpg" alt="Example Image"></p>

<structure><entry>
Output descendants of current structure
# Output descendants of current structure

(Asked by: username_0 on 2014-12-11)

I hope I worded the title correctly. I'm trying to output whatever structure's page I'm on - I want the descendants of whatever page that is. I'm currently using this, which at first appeared to work, but then my css styling doesn't get applied to any of the other entries.  See below:

  {% set messages = entry.getChildren() %}
     {% if messages | length %}
       
        {% for entry in messages %}
          {% for image in entry.seriesArtwork %}
            
          {% endfor %}
 
    
      {{ entry.title }}
         {{ entry.postDate|date('M j, Y')}} • {{ entry.speaker }}
        

    
      {% endfor %}
{% endif %}

**Tags:** structure, entry

---

## 1 answers

### Answer by username_0 on 2014-12-11. Score: 1

This was an ordering mistake. I didn't setup my grid properly for the loop that has to take place.


---

