Feature #21872
closedpage.incudeJS stdwrap
0%
Description
It should be useful to have a stdwrap properties in page.includeJS includeCSS includeFooterJS ... to be able to use "if" conditions in every file included.
For example it's very common to load a JS/CSS lib if you insert a FCE, you could use page.headerData but it isnt as clean as includeJS
(issue imported from #M13074)
Files
Updated by Susanne Moog almost 15 years ago
Apply the patch to test this feature.
How to test:
Use some TS like the following and look at your source code (adjust the filenames to existing ones):
page {
includeCSS {
file1 = fileadmin/template/test.css
file1.stdWrap.wrap =
}
includeJS {
file1 = fileadmin/template/test.js
file1.stdWrap.wrap =
}
includeJSFooter {
file1 = fileadmin/template/test2.js
file1.stdWrap.wrap =
}
includeJSFooterlibs {
file1 = fileadmin/template/test3.js
file1.stdWrap.wrap =
}
}
Test from extension:
Use f.e. the pagerenderers addCSSfile with a stdWrap config array as last parameter:
$pageRenderer->addCssFile($file, 'stylesheet', 'screen', '', TRUE, FALSE, '', $stdWrap)
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.3
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Riccardo De Contardi over 11 years ago
Could be closed:
since TYPO3 CMS 4.7.x
includeJSlibs.[array], includeJSFooterlibs.[array],includeJS.[array], includeJSFooter.[array],includeCSS.[array]
all have the properties .allWrap and .if
Updated by Chris topher over 11 years ago
- Status changed from Needs Feedback to Closed
Riccardo De Contardi wrote:
Could be closed:
all have the properties .allWrap and .if