Keyword

k2 v2.6.9 Add bootstrap library

  • shoulders
  • shoulders's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago #154219 by shoulders
k2 v2.6.9 Add bootstrap library was created by shoulders
Hi,

I use K2 as a KB for all of my webdesign, IT and programming notes. As such I add code in to articles and then run the demos so I can see the code working on screen. I want to keep using k2 v2.6.9 for the time being because there are some UI layout issues that I do not like.

I am aware that the new version of K2 v.2.7.0 loads the bootstrap.min.js library which is great for later on.

One of my demos uses the .carousel function in bootstrap and rather than add the file into every demo that requires the library I want to add it just once because when I upgrade K2 this will no longer be required.

How can I get K2 v2.6.9 to load the file /media/jui/js/bootstrap.min.js , perhaps via the template.?

Thanks for any help

shoulders

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154241 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 v2.6.9 Add bootstrap library
Hello,

K2 does not use Bootstrap. Bootstrap is being loaded by Joomla! in the backend, and by the template in the front-end.

Furthermore there are no UI elements by default like carousel or tabs in the frontend.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • shoulders
  • shoulders's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago - 8 years 4 months ago #154254 by shoulders
Replied by shoulders on topic k2 v2.6.9 Add bootstrap library
I am using a joomlashine template and on the homepage bootstrap.min.js is loaded from the /media/jui folder. When I got to my knowledge base (K2 v2.6.9) in the frontend, the bootstrap.min.js library is not loaded. so i thought it could be 1 of the following
  1. Joomla version
  2. K2 blocking/not loading library
  3. joomlashine template

At this time i also had a copy of my site running in xammp but with k2 v2.70 and the latest version of joomla running. the bootstrap.min.js was being loaded on k2 pages.

So back to my live site:
  1. I upgrade to joomla 3.5.1 and it made no difference
  2. I tried another joomlashine template on my live site and it made no difference. I also changed it on my xammp installation to see what happend. Changing the template makes no difference.

So this meant that either K2 v2.6.9 is actively blocking the loading of bootstrap.min.css or I need to include it via the k2 template.

Can you help me out with what is going on here.

I want to include bootstrap.min.js for my demo code without having to re-add it every article that needs it. Also bootstrap.min.js is available when using v2.7.0 but I do not want to migrate to that version just yet.

This is an example page just for reference: quantumwarp.com/kb/articles/111-packages/792-happy-customers

thanks
Last edit: 8 years 4 months ago by shoulders.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154256 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 v2.6.9 Add bootstrap library
Hello,

K2 is not blocking the loading of any files.
Bootstrap has to be loaded manually in your template - docs.joomla.org/J3.x:Javascript_Frameworks

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • shoulders
  • shoulders's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago #154257 by shoulders
Replied by shoulders on topic k2 v2.6.9 Add bootstrap library
brilliant, mystery solved.

Which file in the k2 template should I add this rule to. I can do the coding but I only need to add it for K2 because it is added for the rest of the site.

I did have a look but was not sure which file.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154278 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 v2.6.9 Add bootstrap library
Hello,

This should be added throughout the template, since this is template specific you need to address this issue to the template's developer.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • shoulders
  • shoulders's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago #154279 by shoulders
Replied by shoulders on topic k2 v2.6.9 Add bootstrap library
It is added throughout the site, just not K2, so i just wanted to add it to K2 through k2's template system as a workaround until I upgrade to a later version of K2.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154326 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 v2.6.9 Add bootstrap library
If you added throughout the site and it is not loading in certain extensions (K2 included of course) then there is either a template issue, or a plugin is deregistering the script. K2 by default will only load its own styles and scripts, it will not intervene with other styles/ scripts.

Either way since this is related to a 3rd party template so you need to contact the developer of the template about this issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum