Project

General

Profile

Actions

Feature #21872

closed

page.incudeJS stdwrap

Added by Fernando Arconada over 14 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-12-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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

13074_feature_stdWrapPageRenderer.diff (8.73 KB) 13074_feature_stdWrapPageRenderer.diff Administrator Admin, 2010-01-10 14:06
Actions #1

Updated by Susanne Moog over 14 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)

Actions #2

Updated by Alexander Opitz almost 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)?

Actions #3

Updated by Riccardo De Contardi almost 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

Actions #4

Updated by Chris topher almost 11 years ago

  • Status changed from Needs Feedback to Closed

Riccardo De Contardi wrote:

Could be closed:

all have the properties .allWrap and .if

Actions

Also available in: Atom PDF