I'm building an overview page that will show a title, thumbnail, etc of the pages inside the structure. I want the nav children to start at the parent page we're currently on. I can get the correct elements to display - they just don't have any entry data like title. If there's a better way to approach this let me know.
{% set overview = (entry.level == 1) ? entry : entry.getAncestors().level(1).first() %} {% nav entry in overview %} {{ cycle(['<div class="overviewrow">', '', '', ''], loop.index0)|raw }} <div class="col"> <a class="marketlink href="{{ entry.url }}"> <div class="marketwrap"> {% for block in entry.contents.type('image').limit(1) %} {% if block.image | length %} {% for image in block.image.limit(1) %} <img src="{{ image.getUrl('blogThumb')}}" alt="{{ image.altText }}"> {% endfor %} {% else %} <img src="/something.jpg"> {% endif %} {% endfor %} <div>{{ entry.title }}</div> </div></a></div> {% ifchildren %} {% children %} {% endifchildren %} {{ cycle(['', '', '', '</div>'], loop.index0)|raw }} {% endnav %}