Home Features Extensions JB Library Plugin

JB Library Plugin

Written by Administrator Monday, 11 May 2009 01:24
PDFPrintE-mail

The jQuery plugin otherwise known as the JB Library is a simple joomla plugin that loads jQuery into the head of your template - You need to install this when setting up Elevation and if you want to use the jQuery effects such as the Elevation Slideshow, panel menu and superfish menu. See below for instructions on how to do this. Once you have enabled the plugin there is no need to load the jQuery library again in any other extensions so if you have the option to in other modules please set the option to no or unpublished.

If you check the source output of your site (by clicking view --> source in firefox) you should see the following code references being output:

<script type="text/javascript" src="/joomla/1.5/elevation/media/system/js/mootools.js"></script>
<script type="text/javascript" src="http://localhost:8888/joomla/1.5/elevation/plugins/system/bambooLibrary/js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="/joomla/1.5/elevation/media/system/js/caption.js"></script>

You can see the first line relates to the mootools library that is output by default in Joomla. The next line contains the jQuery library that the plugin is outputting and the third line is the caption script that helps display the hints in the Joomla editor.

Why are we using this method for embedding jQuery?

By adding jQuery as a plugin we can add other jQuery plugins and scripts in our module son the fly. That means that there is no need to add script references to the head of your template and it also means that scripts only get loaded if the module is present.

 
twitter Bird more info

Style Guide

Suspendisse id ante eu nisi bibendum volutpat. Etiam in lorem at magna pulvinar ullamcorper vitae et massa. Integer scelerisque rhoncus magna.

Discover Strata

Pellentesque at urna ut felis consequat dignissim nec eget quam. In hac habitasse platea dictumst. Pellentesque erat libero, fermentum in auctor ut, luctus eu lectus.

The JB Hidden Panel

The hidden panel contains four module positions that can be used to display any number or types of modules. The panel trigger sits to the top right of the template and becomes activated when you enable at least one module to the panel1, panel2, panel3 or panel4 position. The text used to trigger the panel is controlled by a parameter in the template administrator.