Twitter
Tue
14
Jul
'09
PDF
Print
Send
 
Hits (2251) | Comments (2) | Favorited (0) | Votes (0)

Here is my first mini-tutorial, maybe it helps some of you.

In many Joomla forums is repeatedly asked:
" How can I remove the mootools scripts which are automatically loaded ? "

For this I use a little php script that can prevent to load the Joomla Mootools Script Framework in Frontend. The script does not remove mootools from the backend area, where it will be for the functionality of Joomla required.

Even if you use Mootools on your side, it would be a better solution to load the framework by hand, because usually you need dont need the whole mootools framework, only partial.

  1. open your index.php stored in your Template
    .../templates/your_template/index.php
  2. go to the head-Tag and place the following Script there
    <head></head>

*php get('guest') == 1 or $user->usertype == 'Registered' or $user->usertype == 'Super Administrator') { $headerstuff = $this->getHeadData(); $headerstuff['scripts'] = array(); $this->setHeadData($headerstuff); } ?>

Now you can load only that Scripts to your Head, you realy use. If you also use the mootools Framework, visit the mootools site and download a minified Version, only with the options you use.

Cheers Ben.


Comments
monitobdAvatar
Quote
- -
Written by monitobd on 21 January 2010

your site : unload MooTools Framework for Frontend Users

me:        : need video tutorial please

-
monitobdAvatar
Quote
- -
Written by monitobd on 21 January 2010

problem: Warning: Parameter 2 to plgJoomsuite_content_fieldsHtml::onRenderField() expected to be a reference, value given in---joomla\event\event.php on line 67

-
Add New Comment
Name:
Email:
Comment:
Attachment
Hide Comment
Security code:
Enter text as you see on image
 
 
What is best way for Download/Installation MightyExtensions?
 


Member Area



Member Activity

We have 1891 guests and 9 members online


MightyTemplate - Professional Joomla Templates