Project

General

Profile

Actions

Bug #68815

closed

Using backend container's "includeJsFiles" fails

Added by Sam AG almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2015-08-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.6
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Hi

In my newly created backend module, I wanted to add additional js files using fluids be.container param: "includeJsFiles". From the documentation I copied this: includeJsFiles="0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'". It always gives me the message that it was registered with type array, but it is type of string in "TYPO3\CMS\Fluid\ViewHelpers\Be\ContainerViewHelper". Seems like a bug to me, can anyone reproduce this?

Regards

Actions #1

Updated by Wouter Wolters almost 9 years ago

  • Status changed from New to Needs Feedback

Please try something like:

includeJsFiles="{
0:'{f:uri.resource(path:\'JavaScript/jquery-validate-1.11.1.min.js\')}',
1:'{f:uri.resource(path:\'JavaScript/jquery.expander.min.js\')}',
2:'{f:uri.resource(path:\'Contrib/LoadMask/jquery.loadmask.js\')}'
}"

Actions #2

Updated by Sam AG almost 9 years ago

Thank you, this was it!

Actions #3

Updated by Wouter Wolters almost 9 years ago

  • Status changed from Needs Feedback to Closed

Thanks for quick feedback. Ticket closed.

Actions

Also available in: Atom PDF