[TYPO3-core] RFC: #9822: New rendering method for content elements (lesser markup, cleaner code)

Franz Koch typo.removeformessage at fx-graefix.de
Sun Nov 23 16:19:22 CET 2008


Hi Susanne,

> Description:
> 
> The current rendering of content elements creates a lot of markup, for 
> example when using section frames an extra div is created, when using 
> space before or after clear.gifs are inserted...
> 
> As originally proposed by Franz Koch on this list (discussion on 5835 - 
> clear.gifs) this could be reduced to having only one single div.
> 
> Attached a first version of a patch - mainly adapting Franz example code 
> (thx!) + adding a method to have default margins additionally to the 
> ones specified in content elements.
> 
> Tested successfully so far with IE 6 and FF3 on Ubuntu, every other 
> browser test would be very welcome.

Nice that you also included the csc-constants for calculating the margins.
What just came to my mind is that it might be better to use referenced 
copies of the "default" setup for every frame type, so that admins can 
alter the overall rendering of all section frames by just changing the 
"default" rendering. So maybe this would be better for general usage:

1 =< tt_content.stdWrap.innerWrap.cObject.default

and on section frame "21" you've got a small error in the TS:
wrong:
21.value = csc-frame csc-frame-frame2

correct:
21.15.value = csc-frame csc-frame-frame2

-- 
kind regards,
Franz Koch


More information about the TYPO3-team-core mailing list