[TYPO3-english] tx_news render fluid image without width and height

Sacha Vorbeck vorbeck at TYPO3Tutor.de
Thu Jun 12 11:09:49 CEST 2014


Hi,
I`d like to render the tx_news detail image without width and height.

In partials/detail the image object is defined like this:
<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}" />

It doesn`t matter how I configure the max... settings, the image will 
always be rendered like this:

<img width="315" height="211" alt="" 
src="/uploads/tx_news/example__315x211_.gif">

But I already defined the image size in CSS and have to get rid of the 
width and height properties in the img-element. Does anyone know how to 
do this?

-- 
thank you - all the best,
Sacha


More information about the TYPO3-english mailing list