Project

General

Profile

Actions

Bug #98212

closed

<f:asset.script>: identifier attribute is required

Added by Christian Weiske about 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid
Target version:
-
Start date:
2022-08-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The fluid view helper "f:asset.script" documentation says the "identifier" attribute is not required:

identifier

DataType

    string
Required

    false
Description

    Use this identifier within templates to only inject your JS once, even though it is added multiple times.

- https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/typo3/fluid/latest/Asset/Script.html
- https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3/fluid/latest/Asset/Script.html

Yet when omitting the attribute I get an exception in TYPO3 10.4.28:

(1/2) #1237823699 TYPO3Fluid\Fluid\Core\Parser\Exception

Fluid parse error in template Form_action_data_c6ac93081190f90754d41ae7e65a05164b226925, line 13 at character 4. Error: Required argument "identifier" was not supplied. (error code 1237823699). Template source chunk: <f:asset.script src="EXT:myext/Resources/Public/Javascript/form.js"/>

Please fix that in the documentation.

Actions

Also available in: Atom PDF