Just caught it. So you’re referencing the images field, but it’s inside the repeater. Should be contentrepeaters.images.imagesrepeater or something along the lines of that
uuid: 341e9e03-f773-4f10-bb0a-b0407c43e123
handle: Blocks\ConsultingContent
type: mixin
name: Consulting Content
fields:
contentrepeaters:
type: repeater
titleFrom: title_when_collapsed
itemsExpanded: false
form:
fields:
imagesrepeaters:
type: repeater
titleFrom: title_when_collapsedd
itemsExpanded: true
form:
fields:
image:
label: Bild
type: mediafinder
mode: image
maxItem: 1
required: true
span: left
imageAlt:
label: Bildbeschreibung
type: text
span: right
headline:
label: Ăśberschrift
type: text
span: left
subheadline:
label: Zusatztext
comment: Wird unterhalb der Ăśberschrift als kleiner Text angezeigt.
type: text
span: left
subheadline_switch:
label: Zusatz anzeigen?
type: switch
default: true
span: left
textarea:
label: Text
type: richeditor
size: large
What i still don’t get is how can I loop through the repeater. For example if there is one image in the second repeater and in one repeater are two images. What if I want to have different markups for one and two or more images?
The reason why I suggest this is because each image that you upload to that would have it’s own alt, and title. You can click the uploaded file and add that there. You would just have to change your markup to display that content.
{% for images in contentrepeaters.imagerepeaters %}
{% for image in images %}
<img alt="{{ image.title ~ ' ' ~ image.description }}" src="{{ image.path }}">
{% endfor %}
{% endfor %}
The above may not fit your setup, but could help with content stuff and simplify things a bit.
If you want to continue using the markup that you have now, the blueprint you’re using has an error. Change maxItem: 1 to maxItems: 1