Issue Feature Closed

#51782allWrap property for CSS and JavaScript files replaces all pipes ("|")

Christoph Dörfel 09/05/13, 16:54 updated 10/02/18, 12:10

Description

When CSS or JavaScript files are wrapped through the “.allWrap” property (@see TSref->Page->includeCSS), all pipe symbols (“|”) are replaced with the generated tag.

file1 = fileadmin/templates/style.css
file1.allWrap = X | Y | Z

results in

X <link rel="stylesheet" type="text/css" [..] /> Y <link rel="stylesheet" type="text/css" [..] /> Z

This behaviour differs from what we are used to with wraps in TYPO3.
”.allWrap” should behave like “stdWrap.wrap”, with the addition of a splitChar, e.g: “allWrap /+.splitChar”

Code in
\TYPO3\CMS\Core\Page\PageRenderer->renderCssFiles()
and
\TYPO3\CMS\Core\Page\PageRenderer->renderJavaScriptFiles()

Reviews 1