[TYPO3-content-rendering] IMAGE

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon May 29 14:19:42 CEST 2006


Kai Laborenz schrieb am 28.05.2006 18:17:

>> I agree, which is why I haven't added any "special case" until now. But
>>   the most common "special case" I was brought to attention was the "add
>> just one image". Maybe we could have:
>>
>> 1) One image with caption: Maybe just a single DL-DT-DD with the DL
>> having a fixed width (and correctly positioned).
> 
> +1
> 
>> 2) One image without caption: Maybe just a single DIV-IMG. No fixed
>> "width" needed here.
> 
> I think one image should be one image-tag - maybe with a class... no
> more is needed.

True. I was thinking that we need a DIV for borders and optional
paddings and/or textMargin, but I think this can all be done with the
"naked" IMG tag also.

> 3) list of images without caption...
> Hm - this schould go into an UL with a class and maybe classes for the LIs

Agreed. But this would get in conflict with the current "renderMethod"
that is choosable, where we also have UL as a potential rendering method
already.

So for backwards compatibility I would create a "new" renderMethod that
is enabled by default in "new" installations. The old renderMethod will
still work and be the default on upgrades (using the compatVersion
check). The new renderMethod ("cleanMethod") should be able to
differenciate such "special cases" and render either a DL or a UL or
just a IMG, depending on how many images there are and if there are
captions or not.

What do you think?

Cheers,
Ernesto



More information about the TYPO3-project-content-rendering mailing list