[TYPO3-content-rendering] IMAGE

ben van 't ende [netcreators] ben at netcreators.nl
Mon May 22 22:03:53 CEST 2006


Ernesto Baschny [cron IT] wrote:
> Martin Kutschker schrieb am 22.05.2006 09:58:
>> Ernesto Baschny [cron IT] schrieb:
>>> 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?
>> Maybe one-image-with-caption, but that should be it. The code is hard to
>> read the way it is now. The more special case the harder it'll be to
>> maintain.
> 
> 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).
> 
> 2) One image without caption: Maybe just a single DIV-IMG. No fixed
> "width" needed here.
> 
> So if anyone has a suggestion on the "cleanest" XHTML/CSS code to
> acchieve that so that it doesn't conflict with the current CSS, that
> would be the first step so that I can try to add it.

Hi Guys/Ernesto,

Obviously 'simple' is best practice here and I agree this would be for
the special case of one image. I think I could agree on both points.

Your question about a conflict with the current CSS is quit complex. I
was looking into the CSS, but couldn't quit figure out what classes you
should keep for this special case. It looks like you should keep
.csc-textpic, .csc-textpic-imagewrap and .csc-textpic-image and the
classes for positioning horizontally, but I can't hardly see how to
implement those. Are you thinking about a new CE 'single image' for
that? That would seem most usefull. It crossed my mind you could also
use the option that is also there in the table element now. You can
disable the classes altogether and add your own class. Both cases 1 and
two can be fully styled with once's own class as well. Just an idea.

gRTz

ben
-- 
netcreators::creation and innovation
www.netcreators.com -  www.typo3.nl





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