Project

General

Profile

Actions

Feature #17586

closed

Featurerequest: config.inlineStyle2TempFile.media

Added by Daniel Wegener about 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2007-09-06
Due date:
% Done:

0%

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

Description

It would be nice to have an "string / stdWrap" for config.inlineStyle2TempFile which enables the user to set a media-attribute for the generated style-link.

Further it would be nicer if this value contains stdWrap-functionality for special purposes (cannot think of a case now, but its always nice to have one).

expected behavior:

config.inlineStyle2TempFile.media = all

OUTPUT:
[...]
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_bcc2a2f479.css" media="all" />
[...]

config.inlineStyle2TempFile.media = screen
config.inlineStyle2TempFile.media.wrap = |,tv
OUTPUT:
[...]
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_bcc2a2f479.css" media="screen,tv" />
[...]

The need to this functionality is the idea of a simply styled print-version (without an extra template), just multiple css-files with media-attributes.

Most Browsers are not able to render the printversion correctly (using those css-files that match their media type). If their is (at least) one style-tag without a media-attribute, it would ALWAYS (media-independent) use this and all following CSS-files (ignoring the media-type of the following attributes).

more information:
http://www.howtocreate.co.uk/tutorials/css/mediatypes

(issue imported from #M6286)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #26372: Add media type configuration option for TypoScript setting config.inlineStyle2TempFile Closed2011-04-28

Actions
Actions

Also available in: Atom PDF