Is it possible to display an image in the list of articles on the blog from Rainlab?

I tried to snatch a piece from a single article like this:

{% set image = __SELF__.post.featured_images.first %} <img src="{{ image.path }}" alt="{{ post.title }}"> 

so:

 {% for image in post.featured_images %} <a href="{{ post.url }}"><img data-src="{{ image.filename }}" src="{{ image.path }}" alt="{{ image.description }}"></a> {% endfor %} 

but nothing came of it.

How can this be done and is it even possible?

    1 answer 1

    Solved the problem so Replaced

     {{ image.path }} 

    on

      {{ post.featured_images[0]['path'] }}