Feature #68089
Make all scripts optional
0%
Description
Using VHS package and its asset viewhelper, we can manually include all the scripts we want and set their order and dependencies. There is a problem with go_maps_ext extension because it adds 2 scripts directly from MapController:
$scripts[] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/Scripts/markerclusterer_compiled.js';
$scripts[] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/Scripts/jquery.gomapsext.js';
and we can't set it any order or dependencies to them.
There should option in extension configuration for this scripts like there is checkbox for jquery etc. This way we can manually include files we need.
Updated by Marc Hirdes over 5 years ago
- Tracker changed from Bug to Feature
- Status changed from New to Needs Feedback
Ok, I will also make a checkbox in the extension manager that the gomapsext.js can be included manually. Would that be a solution for you?