Project

General

Profile

Actions

Feature #26372

closed

Add media type configuration option for TypoScript setting config.inlineStyle2TempFile

Added by Patrick Rodacker over 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-04-28
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The TypoScript option config.inlineStyle2TempFile adds the inline css markup with the attribute media="all".

See TSpagegen::renderContentWithHeader where the inline css gets added at two places:

if (trim($style)) {
if ($GLOBALS['TSFE']->config['config']['inlineStyle2TempFile']) {
$pageRenderer->addCssFile(TSpagegen::inline2TempFile($style, 'css'));
} else {
$pageRenderer->addCssInlineBlock('additionalTSFEInlineStyle', $style);
}
}

and

if (count($temp_styleLines)) {
if ($GLOBALS['TSFE']->config['config']['inlineStyle2TempFile']) {
$pageRenderer->addCssFile(TSpagegen::inline2TempFile(implode(LF, $temp_styleLines), 'css'));
} else {
$pageRenderer->addCssInlineBlock('TSFEinlineStyle', implode(LF, $temp_styleLines));
}
}

The media attribute should be configurable via TypoScript.

I propsose a new TypoScript setting

config.inlineStyle2TempFile.media

which defaults to "all" and supports values similar to the media attribute of the TypoScript setting config.includeCSS[].


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #17586: Featurerequest: config.inlineStyle2TempFile.mediaClosed2007-09-06

Actions
Actions

Also available in: Atom PDF