Actions
Bug #78206
closedFluid ContainerViewHelper with jQueryNamespace="none" fail
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2016-10-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
A setup with a backend module with a Fluid Template and this configuration
<f:be.container enableClickMenu="0" loadExtJsTheme="0" loadJQuery="1" jQueryNamespace="none" >
will fail.
The expected behaviour is that a jquery script tag will be added to the html header and the "jQuery.noConflict(true)" inline javascript will not.
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Be/ContainerViewHelper.php#L110
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Page/PageRenderer.php#L1512
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Page/PageRenderer.php#L2241
This works but the DocumentTemplate adds the jQuery tag on each backend request to.
The result is: 2 script tags and the jQuery.noConflict(true)" inline javascript
<script src="/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-2.2.3.js" type="text/javascript"></script> <script src="/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-2.2.3.js" type="text/javascript"></script> <script type="text/javascript"> /*<![CDATA[*/ var TYPO3 = TYPO3 || {}; TYPO3.jQuery = jQuery.noConflict(true); /*]]>*/ </script>
- The "loadJQuery" parameter from the ContainerViewHelper is useless because the DocumentTemplate add this every time.
- The jQueryNamespace="none" parameter does not provide the expected result.
Actions