Overriding (minified) core assets (developers How-To)
Sometimes you just want to see what's going on in those minified core js files, and modify a bit of code here and there...
At least I do.
- A warning is in place here: using this how-to can seriously mess up your concrete5 install. So please don't do this on a production site and revert when you are done - and before upgrades.
So, here's the little trick I used with the core/file-manager assetgroup.
- register the original files (js/build/core/file-manager/...)
The /core/file-manager.js file is actually build from 3 other files: menu, search and selector.
In app.php or rather in your package controller on_start():
don't forget to use AssetList
2. override the group:
3. require the asset where you need it (eg. your single-page controller view())
4. edit the .js file you want to dive into
That's it, You might wanna rename your group
- ← Previous
- 3 (current)
- Next →