i’m currently working on an update from TYPO3 v10 to TYPO3 v12 via v11.5. We have a large amount of custom extensions, which I am currently updating. We used to use our own custom viewhelper to include javascript and stylesheet files, which I am now replacing using the standard <f:asset.script
and <f:asset.css>
tags. See https://docs.typo3.org/other/typo3/view-helper-reference/11.5/en-us/typo3/fluid/latest/Asset/Index.html
However, these do not seem to render anything in the template.
Here is an example for our backend default layout:
File: typo3conf/ext/my_docs/Resources/Private/Layouts/Backend/Default.html
Content:
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:asset.script identifier="1" src="EXT:my_docs/Resources/Public/javascripts/build/shared/my-docs.angular.shared.min.js" />
<f:asset.script identifier="2">
alert('hello world');
</f:asset.script>
<f:link.external uri="https://www.typo3.org" target="_blank">external link</f:link.external>
<f:asset.css identifier="3" href="EXT:my_docs/Resources/Public/stylesheets/my-docs.css" />
<f:asset.css identifier="4">
.foo { color: black; }
</f:asset.css>
</html>
And the rendered output source code is:
<a target="_blank" href="https://www.typo3.org">external link</a>
So only the <f:link.external>
actually seems to render anything. The log files are empty, and no errors are presented.
Installed Versions are both at v11.5.38:
"typo3/cms-fluid": "^11.5",
"typo3/cms-fluid-styled-content": "^11.5",
Does anyone know what the issue could be?