Bootstrap JS issue

Permalink
I am using the clonelemental theme and encountering a couple of issues.
The first one is that I had to add a link to the bootstrap javascript bootstrap.min.js whcih I thought would already be included in the theme ...

Now if I include this bootstrap javascript, my front end works fine, but thhe backend does not work properly ... which makes me mad as, I have to go back and forth disabling the reference to the file if I want to see my modals working on the front end, and I have to comment it out if I want to be able to see some features in the backend ...

That is quite strange and I specifically started using default templates as I got too bored of trying to solve javascript conflicts ... all that to end up getting, for sure less conflict but still having conflict ...
any help would be appreciated.
Many thanks

 
hutman replied on at Permalink Reply
hutman
Do you have a line in the page_theme.php with a reference to the bootstrap javascript? If you're linking to it in your theme you would want this

$this->providesAsset('javascript', 'bootstrap/*');
ptityop replied on at Permalink Reply
OK ... thanks a lot for this ... now you might be able to shed a light on this :
You said "if you're linking to it" then you should have this ...
and until now what I had in mind was that I did not need to link any javascript if I had the asset required in the page_theme.

Does that make sense ?

I thought that if you had the line requiring an asset in the page theme, it would automatically include the script from the core ...
hutman replied on at Permalink Reply
hutman
That is true, do you have a line requiring all of the bootstrap pieces in your page_theme.php? Many people just choose to use their own version because it's easier.
ptityop replied on at Permalink Reply
I always wanted to use my own scripts but always had conflicts I could not understand and you might have helped me understand why. As I mentionned, I always thought that the logic was like :
If I require bootstrap.js I just require it in page_theme and it will be included in my pages.