bootstrap javascript?
Permalink--
Florian Delizy
Le vendredi 3 octobre 2014 à 12:50, concrete5 Community a écrit :
So if you are needing one of the scripts included with c5, I believe you can make some calls in your block controller's add and edit functions like:
$this->requireAsset('bootstrap/alert');
or
$this->requireAsset('bootstrap/tooltip');
But if you're needing a bootstrap script that isn't included, I think you'll need to include it with your block/package.
Boostrap.js isn't very big, even when it's not compressed, so I would have thought it would have been easier to just include the whole thing, but I guess the individual scripts mean that things can be as lightweight as possible. ¯\_(ツ)_/¯
Js files. If you enable asset caching on the cache page in the dashboard they should be combined and minified on the fly.
You can see their asset configuration here:https://github.com/concrete5/concrete5-5.7.0/blob/develop/web/concre...
Best wishes,
Korvin
Should I create a pull request?
http://www.concrete5.org/documentation/developers/5.7/designing-for...
Specifically, search for the lines
$this->providesAsset('javascript', 'bootstrap/*'); $this->providesAsset('css', 'bootstrap/*');
i believe it is already activated by default in edit mode. have you tried watching the new videos?
http://www.concrete5.org/about/blog/concrete5-sightings/5-7-develop...
it helped me a lot working on 5.7. it also has guides on managing assets.
i hope this helps you. good luck :)