[TYPO3-content-rendering] Divide css_styled_content in multiple templates to rid ourselves of the compat versions

Susanne Moog typo3 at susannemoog.de
Sun Nov 30 12:58:57 CET 2008


Hi everyone,

the current css_styled_content version has a lot of compat version 
conditions in it. In order to reduce the size and complexity of the 
templates it was suggested to divide the template in multiple parts for 
different versions. After thinking it through a bit I came up with two 
possible ways:

1.) Extract all general parts that aren't affected by any compat version 
condition and put them in a general template. Then put all compat 
version parts in corresponding additional templates. So you would end up 
with sth. like:
Include static from extension:
- css_styled_content general
- css_styled_content compat 4.3.
- css_styled_content compat 4.2.
- etc...

2.) Make a whole template for each version, so it's like:
- css_styled_content 4.3
- css_styled_content 4.2
- css_styled_content 4.1
- css_styled_content 4.0
...

What do you think? Which way is better? Are there other possible ways 
that just didn't occur to me?

Regards,

Susanne


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