[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 14:37:15 CET 2014
Hello,
It's solved: I made a mistake, just adding more images shows them all
where the formatting is controlled by the partials-sections.
Sorry for the confusion.
Regards,
Bert
On 19-11-14 11:11, Bert Hiddink [BENDOO e-work solutions] wrote:
> 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