Project

General

Profile

Actions

Feature #51782

closed

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

Added by Christoph Dörfel over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2013-09-05
Due date:
% Done:

100%

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

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()

Actions

Also available in: Atom PDF