Neo plugin - Displaying an image from a Matrix field I am using the Neo plugin in my project. I have made a Neofield article content with several block types in it. Amongst the block types that I have in it, is a gallery as well. Gallery block type has amatrix field imageWithCaption, and the field imageWithCaption has fields file which is the assets field, and fields imageTitle and caption which are plain text fields. I am able to display imageTitle and caption in my template but not a file, or the image itself. This is my template:
     {% for image in block.imageWithCaption %}
        &lt;div class=&quot;large-4 columns&quot;&gt;
          &lt;div class=&quot;media-object stack-for-small&quot;&gt;
            &lt;div class=&quot;media-object-section&quot;&gt;
              &lt;div&gt;
                &lt;img src=&quot;{{ image.file }}&quot; alt=&quot;&quot;&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;media-object-section&quot;&gt;
              &lt;h6&gt;{{ image.title }}&lt;/h6&gt;
              &lt;p&gt;{{ image.caption }}&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      {% endfor %}

I get an error:

Object of class Craft\ElementCriteriaModel could not be converted to
string

What I am doing wrong and how can I display the image?
It's tough to see the full context, just based on what you have here. From what I can tell, it seems like you might need to change &lt;img src="{{ image.file }}" alt=""&gt; to &lt;img src="{{ image.file.first().url }}" alt=""&gt;.

Since the asset field can hold many assets, you have to declare .first() to grab the first one -- even if there's only one image. Then you have to grab the url property from the image, in order to get the correct src value.