Issue Feature Closed

#17586Featurerequest: config.inlineStyle2TempFile.media

Daniel Wegener 09/06/07, 12:11 updated 09/06/13, 09:18

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.