Discussions
Content of cild page
almost 9 years ago by Claes Pontusson(edited)
When looping out out content of sub pages images turns out as Null running engine.
When running locally with Wagon images from child pages is returned as expected.
Other editable elements wok in both cases.
{% for subpage in page.children %}
<a href="{% path_to subpage %}">
<img src="{{subpage.editable_elements.content.main.main_image }}">
<h2>{{subpage.title}}</h2>
</a>
{% endfor %}
almost 9 years ago by Anonymous
Hey Claes,
Can you hop on Gitter and provie us more info there please?
https://gitter.im/locomotivecms/wagon
Thanks!
ο»Ώ