Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating global tooltips


Carry out the following steps:

  1. We're going to use the same script again, so download the TipTip source code from the following URL:

    http://code.drewwilson.com/entry/tiptip-jquery-plugin.

  2. Extract jquery.tipTip.minified.js to packages/c5book/js. You have to create the js folder first.

  3. Extract tipTip.css to packages/c5book/css. You have to have the css folder too.

  4. Now, we've got to make sure these files are loaded and properly called. To do this, open the package controller packages/c5book/controller.php and insert the highlighted lines, as follows:

    <?php
    defined('C5_EXECUTE') or die(_("Access Denied."));
    
    class c5bookPackage extends Package {
    
         protected $pkgHandle = 'c5book';
         protected $appVersionRequired = '5.4.0';
         protected $pkgVersion = '1.0';
    
         public function getPackageDescription() {
           return t("Theme, Templates and Blocks from concrete5 for Beginner's");
         }
    
         public function getPackageName() {
              return...