Index: t3lib/class.t3lib_extmgm.php =================================================================== --- t3lib/class.t3lib_extmgm.php (revision 7440) +++ t3lib/class.t3lib_extmgm.php (working copy) @@ -1216,12 +1216,11 @@ '.$content; if ($afterStaticUid) { $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.'][$afterStaticUid].=$content; - // TODO: find a dynamic way to add default TS to all versions of css_style_content - if ($afterStaticUid==43) { // If 'content (default)' is targeted, also add to other 'content rendering templates', eg. css_styled_content - $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/'] .= $content; - $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v4.2/'] .= $content; - $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v3.9/'] .= $content; - $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v3.8/'] .= $content; + // If 'content (default)' is targeted, also add to other 'content rendering templates', eg. css_styled_content + if ($afterStaticUid==43 && is_array($TYPO3_CONF_VARS['FE']['contentRenderingTemplates'])) { + foreach ($TYPO3_CONF_VARS['FE']['contentRenderingTemplates'] as $templateName) { + $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.'][$templateName] .= $content; + } } } else { $TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type].=$content; Index: typo3/sysext/css_styled_content/ext_localconf.php =================================================================== --- typo3/sysext/css_styled_content/ext_localconf.php (revision 7440) +++ typo3/sysext/css_styled_content/ext_localconf.php (working copy) @@ -40,5 +40,13 @@ 'description' => '', ); + // Register ourselves as "content rendering template" (providing the hooks of "static template 43" = content (default) ) +$TYPO3_CONF_VARS['FE']['contentRenderingTemplates'] = array( + 'cssstyledcontent/static/', + 'cssstyledcontent/static/v4.3/', + 'cssstyledcontent/static/v4.2/', + 'cssstyledcontent/static/v3.9/', + 'cssstyledcontent/static/v3.8/', +); ?> \ No newline at end of file