Feature: #77589 - EXT: syntax in PageRenderer and Compressor¶
See forge#77589
Description¶
It is now possible to use the EXT:
prefix for referencing files inside extensions within the Page
and Resource
PHP classes for adding JavaSyntax or StyleSheet files.
So you can streamline your code from
$this->pageRenderer->addJsFile(ExtensionManagementUtility::extRelPath('core') . 'Resources/Public/JavaScript/Contrib/bootstrap/bootstrap.js');
Copied!
to
$this->pageRenderer->addJsFile('EXT:core/Resources/Public/JavaScript/Contrib/bootstrap/bootstrap.js');
Copied!