Closed jonaseberle closed 3 weeks ago
See https://forge.typo3.org/issues/99203 for TypoScript solutions and comments on https://typo3.slack.com/archives/C02JDFFLBEW/p1669449850484169
We could...
make inject
a string / stdWrap
(probably with recommendation to use {path : EXT:...}
)
have a middleware that keeps /typo3conf/ext/.../Resources/Public/...
working by either readfile()
ing or forwarding (307) to the final location. For performance it could transparently add symlinks on the fly if the file system is writable (to be used for consecutive requests).
have a composer plugin that manages symlinks for installed/uninstalled typo3-cms-extension
packages.
By using 1. now we are trying to stay close to "how it is supposed to work".
The new generation of
typo3/cms-composer-installers
uses URLs toEXT:.../Resources/Public/...
that must be generated via the FileResource API.This will need changes to our test extensions and documentation. We will probably have to develop a solution how our JavaScript can dynamically include JavaScript from e.g. the site package.
Or just tell users they shall dump their loadable assets to some folder in
./public
now. But this won't be a nice solution if people want to dynamically load assets from a 3rd party extension.Relates: https://github.com/TYPO3/CmsComposerInstallers/issues/131