Issue Feature Closed

#19693Integrate possibility to define additional header data via TypoScript

Oliver Hader 12/11/08, 20:55 updated 10/02/18, 12:41

Description

Imagine you’ve got an extension that shall add a JavaScript and a CSS file to the HEAD part of the HTML document of the current page. This is possible in modifying $TSFE->additionalHeaderData. However, when your extension does not come with a PHP part and consists only of TypoScript, it’s not possible.

Thus, this feature request is about to integrate an accordant possibility.

Example:
10 = HEADERDATA
10 {
data = path:EXT:myextension/res/stylesheet.css
wrap = <link rel="stylesheet" type="text/css" href="|">
prepend = TEXT
prepend.char = 9
}

This would do the following:
  • add the CSS file “stylesheet.css” to the HEAD part of the current document

(issue imported from #M9923)

Reviews 0

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