Discussions

Ask a Question
Back to All

Content of cild page

(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 %}