Output image in template I am new to Craft CMS. I am building my first industrial design portfolio site and am facing a brick wall.. The problem is that I have three image handlers that I set up in field. thumbnail, projectBanner and projectThumbnail that I want to display in project section. I found this code snippet and made changes to it to match one of my image handler.

{% for asset in entry.projectBanner %}
    &lt;img src="{{ asset.getUrl(thumb) }}" alt="{{ asset.title }}" /&gt;
{% endfor %}


I made sure that I have upload the image (projectBanner) to a entry and refreshed the browser. The image does not show up but the title does. Could anyone please tell me what I did wrong and what the correct method to achieve outputting images into entries?
When you are working with an asset field you are actually looking at the object so you need to call {{asset.url}} in order to actually output the path to the image or whatever asset you are working with.

{% for asset in entry.projectBanner %}

    &lt;img src="{{asset.url}}&gt;

{% endfor %}


As some additional information I would checkout eager-loading in craft as it can drastically help performance as your website grows!

https://craftcms.com/docs/templating/eager-loading-elements