[TYPO3-content-rendering] IMAGE

Ernesto Baschny [cron IT] ernst at cron-it.de
Sun May 21 11:32:10 CEST 2006


ben van 't ende [netcreators] schrieb am 17.05.2006 15:11:

> Using the IMAGE element creates a div soup I noticed that seems to have an
> number of unneeded/unwanted div's. Just for placing a single image. I realise
> IMAGE should be scalable so you can also use it in a multicolumn way. Is this
> anything you are giving any thoughts at the moment? Or don't you consider this
> an issue?

I think you don't mean the "IMAGE" cObject (from TypoScript), because
this only generates a <img>-tag (optionally linked). You are talking
about the "Images" content object, right?

Currently the "Images" content object works in the exact same manner as
the "Text with images". The only difference is that there are only the
positioning types above-right/center/left (if you choose so in the
"css_styled_content" extension installation). You will get the same
DL-list with images and captions as you get when you place the images
with text.

There is no current thought about changing that, but I'm always open for
new cool idea that might appear. Maybe we can work out something nice in
our group.

There have been some ocasional comments about the DIV/DL-soup when
placing just one image (be it in the "Images" or "Text with images"
content element), but I've always argued that this isn't currently
handled as a "special case", but handled just like any other case.

If we want to make it a "special case", we have a) decide which "special
 cases" we will want to handle (e.g. special case "just one image
without captions") and b) how it should look like in the rendered output
(e.g. "just a single floated div with the image inside"). Then we have
to think about the CSS changes needed to handle all the desired special
cases.

Some "special cases" which might be worth some change:

1) only one image, without a caption, but with potential border/links
and all other settings (positioning, etc)
2) a set of images without captions (in which case a DL shouldn't be
needed?)
3) ...

What do you think?

Cheers,
Ernesto



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