Skip to content

Adding new JS file to EE Combo Loader

Andy Mc edited this page Jun 24, 2021 · 1 revision

To add a new JS file to the EE CP combo loader:

  • Edit /system/ee/legacy/libraries/Cp.php
  • Locate $js_scripts array in set_default_view_variables()
  • Add array element (Ex: 'cp/fuzzy_filters', 'cp/jump_menu',)

Additions to this array are loaded from this location:
/themes/ee/cp/js/build/[cp]/[jump_menu.js]

The [cp] and [jump_menu.js] correspond to the cp/jump_menu segments in the $js_scripts array.

NOTE: Place your source files as per Location & File Explanation and run the build system.