[TYPO3-dev] text/img and img elements with css-class?

Peter Russ peter.russ at 4many.net
Wed Nov 19 16:01:35 CET 2008


--- Original Nachricht ---
Absender:   grac at gmx.ch
Datum:       19.11.2008 15:22:
> hello
> 
> during an intensive discussion about DAM ignoring images which are set in a
> TEMLPLAVOILA and FCE structure, when included in a text element, someone
> proposed to ask my question here in the core team. and they forwarded me 
> to typo3-dev.
> 
> here is my present situation:
> 
> for being able to realise an modern elastic layout one needs to work 
> (via CSS) with % not only in text, but also with img.
> so there is the need to give the images a special CSS class (width=xx% 
> etc.).
> 
> this is in my view only possible if one inserts the images in a 
> text-element.
> until now i gave every <img> a class by hand in the html-editor.
> 
> but this procedure has several con's, of course:
> - manually edit the html-code of every img-tag
> - no caption
> - etc.
> 
> 
> so here are my questions:
> 
> - is there a possibility to integrate a field "CSS class" into the
> content-elements text/img and img?
> 
> -is this possibility already implemented in vers. 4.2.3?
> 
> -or is such a thing planned for these two elements?
> 
> -or are img in typo3 only supposed to have a width in px?
> 
> 
> thanks a lot for your answer
> 
> stephan

IMHO this is not required as in a layout/design the possible size of 
images should be defined. Taking that into account you can use the 
appropriate class at rendering. I've learned that no editor will think 
about classes because an Text-PIC element rendered for Home might differ 
from the news section.

If you have to offer the ability for the editor to adjust the images to 
the required sizes or crop the images perfectly check for fdfx_be_image ;-)

Regs. Peter.


-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
XING: http://www.xing.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list