History: Bootstrap JavaScript JQuery
Preview of version: 8
To integrate bootstrap.js into Tiki we have to add the file into the file /tiki-setup.php in the document root of the Tiki installation. This is done with the following line of code near the end of the file (somebody find a good place?):
$headerlib->add_jsfile('vendors/bootstrap/dist/js/bootstrap.js');
It is possible to integrate the "Bootstrap Plugins" which sort out for example the drop down behaviour, one by one, but the easiest is to integrate the bootstrap.js because it contains all plugins. It would be further more not a big deal to set up a preference for Bootstrap and to load the .js file only when the preference ist active (tried today and worked). Do we need that? Code would be then:
if ( $prefs<a class="wiki" href="'style_bootstrap_layout'" rel="">'style_bootstrap_layout'</a> == 'y' ) {<br /> $headerlib->add_jsfile('bootstrap/swfobject/swfobject.js') }
Pls mind, that the second version needed modification in
/lib/prefs/style.php and /templates/admin/include_look.tpl
aswell. That is pretty much it, what is necessary from the JavaScript/jQuery point of view to make Bootstrap running in Tiki.
What would be awesome and under the point of view of marketing and usability is a way to standardwise integrate external jQuery Plugins like for example responsive slideshows My idea was to implement a grafical interface in the admin area (maybe "look and feel"?), where the user simply writes the paths to the .js/jQuery plugins into an array - one line per path. The storage location could be recommended in /vendors/custom or a new /vendors_custom to keep some chance for consistency (nice for consultants etc.) and easier bug tracking. Workflow would be like this: Review some plugins and choose one with appropriate licence and jQuery version.
- Upload the Plugin directory as is into
/vendors/custom/myplugin or /vendors_custom/myplugin - Type the path vendors/custom/myplugin/whatsoever/myplugin.js into the array in
tiki-admin.php?page=look -> Custom -> jQuery-Array-Box - Check, if you need to copy some css into /styles and maybe to
@include it in /styles/mytheme.css - Should be Done!
There could be naming conflicts of variables and selector between different external .js files, but we could include a linktip to the doc.t.o and there provide a few hints how to deal with such iussues in general. More to write about .js in respect of Bootstrap? Well, go on ...
History
Information | Version | |||||
---|---|---|---|---|---|---|
Mon 03 of Apr, 2023 03:43 UTC Gary Cunningham-Lee Categorized as Archived (Registered users only) due to outdated information. | 20 | |||||
Tue 05 of Nov, 2013 02:15 UTC Torsten Fabricius ML asked to rename for the purpose of SEO optimisation | 19 | |||||
Sun 03 of Nov, 2013 00:37 UTC Torsten Fabricius fix typo | 18 | |||||
Sun 03 of Nov, 2013 00:37 UTC Torsten Fabricius done for now | 17 | |||||
Sun 03 of Nov, 2013 00:15 UTC Torsten Fabricius added info - not yet finished | 16 | |||||
Thu 31 of Oct, 2013 20:37 UTC Torsten Fabricius | 15 | |||||
Thu 31 of Oct, 2013 20:19 UTC Torsten Fabricius it is even more pain | 14 | |||||
Thu 31 of Oct, 2013 20:18 UTC Torsten Fabricius it's a pain | 13 | |||||
Thu 31 of Oct, 2013 20:17 UTC Torsten Fabricius | 12 | |||||
Thu 31 of Oct, 2013 20:14 UTC Torsten Fabricius | 11 | |||||
Thu 31 of Oct, 2013 20:13 UTC Torsten Fabricius no comment | 10 | |||||
Thu 31 of Oct, 2013 20:12 UTC Torsten Fabricius no comment | 9 | |||||
Thu 31 of Oct, 2013 20:11 UTC Torsten Fabricius | 8 | |||||
Thu 31 of Oct, 2013 20:08 UTC Torsten Fabricius arrg WIEEESIEEEWIEEEG ... styling | 7 | |||||
Thu 31 of Oct, 2013 19:58 UTC Torsten Fabricius page style - I hate WYSIWYG!!!! aslways necessary to go through HTML a few times until it fits | 6 | |||||
Thu 31 of Oct, 2013 19:47 UTC Torsten Fabricius | 5 | |||||
Thu 31 of Oct, 2013 19:43 UTC Torsten Fabricius | 4 | |||||
Thu 31 of Oct, 2013 19:37 UTC Torsten Fabricius | 3 | |||||
Thu 31 of Oct, 2013 19:34 UTC Torsten Fabricius started the "bootstrap.js" page on themes.t.o | 2 | |||||
Tue 29 of Oct, 2013 02:39 UTC Torsten Fabricius startes with .js | 1 |