-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo3 v11: Asset handling #1736
Comments
Have you considered to migrate your asset includes to the new AssetCollector? Introduction: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.3/Feature-90522-IntroduceAssetCollector.html |
The Asset-Collector seams to be a nice Feature, but accutally we (in the company I work for) are using a slight modified version of the vhs Asset-Service since Typo3 v7. We Keep the Code of the Fork upn to date. |
For posterity: this only happens if |
@NamelessCoder, Has this been tested in TYPO3 9.5 and 10.4? EDIT: I tested with TYPO3 11.5, and it's not working there either. |
@mkarulin It was tested on all four supported TYPO3 versions, but it's possible (likely) that some specific context state was affecting my results while testing. For example, I was always logged in to the BE. Can you open a new issue for this, then I will look into it? |
Some of the hooks are gone in Typo3 v11 now.
For example: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'] which ist used by the assetservice
Therefore the Asset Viewhelpers are not longer working.
Edit: I was able to get this working in a Kinda lazy way, I reimplemented the old hook:
I had to create a file
typo3conf/ext/myExt/Configuration/RequestMiddlewares.php
also setting up some stuff in the
typo3conf/ext/myExt/Configuration/Services.yaml
And Filnaly remimplemented the Hook
typo3conf/ext/myExt/Classes/Middleware/Assets.php
:The new hook can then be used in the
ext_localconf.php
:The text was updated successfully, but these errors were encountered: