#19693Integrate possibility to define additional header data via TypoScript
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
}
- 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.