Bug #22534 ยป 14231.diff

Administrator Admin, 2010-04-28 08:34

View differences:

t3lib/class.t3lib_extmgm.php (working copy)
1216 1216
'.$content;
1217 1217
			if ($afterStaticUid) {
1218 1218
				$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.'][$afterStaticUid].=$content;
1219
					// TODO: find a dynamic way to add default TS to all versions of css_style_content
1220
				if ($afterStaticUid==43)	{	// If 'content (default)' is targeted, also add to other 'content rendering templates', eg. css_styled_content
1221
					$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/'] .= $content;
1222
					$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v4.2/'] .= $content;
1223
					$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v3.9/'] .= $content;
1224
					$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.']['cssstyledcontent/static/v3.8/'] .= $content;
1219
					// If 'content (default)' is targeted, also add to other 'content rendering templates', eg. css_styled_content
1220
				if ($afterStaticUid==43 && is_array($TYPO3_CONF_VARS['FE']['contentRenderingTemplates'])) {
1221
					foreach ($TYPO3_CONF_VARS['FE']['contentRenderingTemplates'] as $templateName) {
1222
						$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type.'.'][$templateName] .= $content;
1223
					}
1225 1224
				}
1226 1225
			} else {
1227 1226
				$TYPO3_CONF_VARS['FE']['defaultTypoScript_'.$type].=$content;
typo3/sysext/css_styled_content/ext_localconf.php (working copy)
40 40
	'description' => '<ul><li>Clear divs will be generated by default for in-text right or left positioned textpic elements.</li><li>The default row space changes to 10px, to be in line with col space and text margin.</li><li>Rendering bugs with wrong margins were fixed (Default CSS changed).</li></ul>',
41 41
);
42 42

  
43
	// Register ourselves as "content rendering template" (providing the hooks of "static template 43" = content (default) )
44
$TYPO3_CONF_VARS['FE']['contentRenderingTemplates'] = array(
45
	'cssstyledcontent/static/',
46
	'cssstyledcontent/static/v4.3/',
47
	'cssstyledcontent/static/v4.2/',
48
	'cssstyledcontent/static/v3.9/',
49
	'cssstyledcontent/static/v3.8/',
50
);
43 51

  
44 52
?>
    (1-1/1)