[TYPO3-english] News and multiple images at detail: how to render with FLUID?
Bert Hiddink [BENDOO e-work solutions]
hiddink at bendoo.nl
Wed Nov 19 11:11:39 CET 2014
Hello,
The snippet below renders only the first image at the detail-page of
News...however, I would like also to render the second and third image
attached to this item...
How should this be done with Fluid?
Thanks in advance!
Bert
<div class="mediaelement mediaelement-image">
<f:if condition="{settings.detail.media.image.lightbox}">
<f:then>
<a class="imgpop kolom" rel="{settings.detail.media.image.lightbox}"
title="{mediaElement.caption}"
href="{f:uri.image(src:'uploads/tx_news/{mediaElement.content}'
maxWidth:'800')}">
<div class="image-center"><f:image
src="uploads/tx_news/{mediaElement.content}"
title="{mediaElement.title}" alt="{mediaElement.alt}"
maxWidth="{settings.detail.media.image.maxWidth}"
maxHeight="{settings.detail.media.image.maxHeight}" /></div>
</a>
</f:then>
<f:else>
<f:image src="uploads/tx_news/{mediaElement.content}"
title="{mediaElement.title}" alt="{mediaElement.alt}"
maxWidth="{settings.detail.media.image.maxWidth}"
maxHeight="{settings.detail.media.image.maxHeight}" />
</f:else>
</f:if>
</div>
More information about the TYPO3-english
mailing list