Hi,
I’ve setup a blog type page in the , all working great, and I’m trying to list some posts in another page.
I can list the post title with url, but can´t figure out how to show first image of each post.
{% for post in page.find('/publicacoes').children.order('date', 'desc').slice(0, 2) %}
{% set image = page.media.images|first %}
<li class="recent-posts">
<strong>
<a href="{{ post.url }}">
{% if image %}
{{ image.cropZoom(800,800).html }}
{% endif %}
{{ post.title }}
</a>
</strong>
</li>
{% endfor %}
The code Is calling images from the current page instead of /publicacoes/children.
Any help is appreciated.
Cheers,
Pedro