Display images from Structure I have a Structure section (galeriesPhotos) with two Entry Types:


Albums - the categories on the index.html page
Photos - the the actual gallery on the entry.html


I'm trying to display the images related to the "Albums" on entry.html like this:

{% set entries = craft.entries.section('galeriesPhotos').getEntryType('Photos') %}

{% for image in entries %}
  &lt;img src="{{ image.getUrl }}"&gt;
{% endfor %}


Nothing happens. I get a blank page without any errors. What I am doing wrong?
In the example code above, the query is retrieving a list of Entries and setting it to the variable entries.  Then, you are trying to loop through those Entries and treat them like they are a list of Assets.

As noted in the comments, this was complicating the situation.

It appears that, on the entry.html page, the entry variable was already available, as Craft makes that entry variable to all individual entry pages in Sections that have URLs.

This makes accessing the Assets field on that page as simple as accessing a field, rather than needing to create a separate query to find the data.  From the comments above, the solution was to just access the appropriate Assets field on the Entry Page template and loop through them:

{% for asset in entry.entryFieldHandle %}
    &lt;img src="{{ asset.url }}"&gt;
{% endfor %}