[TYPO3-content-rendering] CSS-Style IMGTEXT rendering issue

Ernesto Baschny [cron IT] ernst at cron-it.de
Sun Mar 5 23:16:29 CET 2006


On 04.03.2006 18:16, Kai Laborenz wrote:

> I tested the new beta3 with (as far as I know) CSS Styled IMGTEXT
> integrated into CSS Styled Content and I noticed some rendering issues:
> 
> I didnt change any defaults and edited a simple text w image element
> (intext left; colums: 1).

Do you have "imageTextSplit" constant set to "1"?

> The resulting code looks like this:
> 
>  <div class="csc-textpic csc-textpic-intext-left">
>     <div class="csc-textpic-imagewrap">
>        <dl class="csc-textpic-image">
>           <dt><img src="..." /></dt>
>        </dl>
>     <div class="csc-textpic-caption">
>        <p class="csc-caption">...</p>
>     </div>
>  </div>
>  <div class="csc-textpic-text">
>    <p class="bodytext">...</p>
>  </div>
>
> Using a definition list for images is fine but it is worse than useless,
> if the caption is not into thd <dd> element...

The problem is, if you set imageTextSplit to "0", the caption is
relevant to all images in the block and not to a single image. Which is
why that caption is placed after the whole imagewrap-block and not along
each single image. This is not the default in "4.0-mode", thou, so it
shouldn't usually happen.

> Why is the caption wrapped with two classed elements? One class on the
> outer element is more tha enought. IMHO there is no need for two
> elements at all.

Yes, this is a bug which I already fixed, sending the patch to Stucki
and Sebastian, we'll have to wait until they integrate it.

> Maybe there is a hidden meaning after all this but I didnt get it ;-)

Cool that you are taking a closer look at it, since not many seemed to
be interested yet. If you find other uglynesses, please report.

Cheers,
Ernesto



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