Отключение Mootools в Joomla 2.5 (1.7)
Добавил(а) Administrator   
22.06.12 14:28

В CMS Joomla 2.5(1.7) по прежнему по умолчанию для решения задач на Js используется фраймворк Mootools , а так же вспомогательные Js скрипты работающие совместно с mootools.
Например такие как : mootools-core.js , mootools-more.js, core.js, caption.js, modal.js, caption.js.
Но зачастую разработчики веб-сайтов сами выбирают себе js-фраймворки для разработки интерфейса или вообще отключают вывод дефолтных скриптов которые не несут не какой пользы в их проекте.

Существует несколько способов отключить загрузку, я вам хочу привести универсальный 100% работающий и легко понятный скрипт всем кто мало мальски знаком с PHP.
Ниже приведенный код надо вставить в код шаблона Joomla 2.5 перед позицией

<jdoc:include type=»head» />

1
2
3
4
5
6
7
<?php
// здесь представлен список js скриптов отключаемых  при загрузки
unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js'], 
	$this->_scripts[$this->baseurl.'/media/system/js/mootools-more.js'],
	$this->_scripts[$this->baseurl.'/media/system/js/core.js'],
	$this->_scripts[$this->baseurl.'/media/system/js/caption.js']);
?>

Основной конструктивизм кода состоит из того что мы оператором unset просто разрушаем (разустанавливаем) специфическую переменную, заранее предопределенную в другом файле( функции).

Данный способ является максимально правильным и простым при отключение Mootools в Joomla 2.5 (1.7).

Последнее обновление 06.07.12 11:22
 

Комментарии  

 
0 #141 Carma 24.01.2021 11:39
Hello just wanted to give you a quick heads up and let you know a few of the images aren't loading correctly.
I'm not sure why but I think its a linking issue.
I've tried it in two different browsers and both show the same results.


Have a look at my web site: Эзотерика
Саморазвитие: https://vk.com/public55708619
Цитировать
 
 
0 #140 Fannie 17.01.2021 12:37
I like the helpful info you provide in your articles.
I will bookmark your blog and check again here frequently.
I'm quite sure I'll learn many new stuff right here! Best of luck for
the next!

my blog zenapax fdating: https://infositus303.com
Цитировать
 
 
0 #139 Becky 17.01.2021 11:47
It is really a nice and helpful piece of information. I'm happy that you shared this helpful info with us.
Please stay us informed like this. Thank you for
sharing.

Also visit my web site - luc essay: http://opaseke.com/users/1425
Цитировать
 
 
0 #138 Jan 16.01.2021 17:45
I like it when people get together and share views. Great site, keep
it up!

My web page psychology dating: https://almoka.likedatingus.com
Цитировать
 
 
0 #137 Lon 15.01.2021 03:44
Can I just say what a comfort to discover somebody that actually knows what they are talking about online.
You actually know how to bring an issue to light and make it important.
More and more people have to look at this and understand this side of
your story. I was surprised you're not more popular because you surely possess the gift.


Have a look at my web blog ... intdating.org safe: https://datingfuckdating.com
Цитировать
 
 
0 #136 Maggie 14.01.2021 20:49
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your webpage?
My website is in the very same area of interest as yours and my users would truly benefit from a lot of
the information you present here. Please let me know
if this alright with you. Many thanks!

Look into my webpage ... armoure dating: https://kristinfrey.com
Цитировать
 
 
0 #135 Karine 11.01.2021 05:42
Good post. I learn something totally new and challenging on websites I
stumbleupon everyday. It will always be exciting to read articles from other authors and practice something
from their websites.

Here is my page :: sprecavanje herpesandyoudat ing: https://persianstart.com
Цитировать
 
 
0 #134 Angel 10.01.2021 18:21
I know this website presents quality based articles or reviews and
other data, is there any other website which gives these
information in quality?

Here is my website: trannsexual dating: https://usalldating.com
Цитировать
 
 
0 #133 Louella 03.01.2021 12:57
It is not my first time to pay a quick visit this website, i am visiting this web page dailly and obtain fastidious facts from here every day.


Feel free to surf to my blog post ... drew
laughlin-rencontres: https://guelphp.lovestoryen.com
Цитировать
 
 
0 #132 Collette 09.12.2020 23:44
Hi there to all, as I am actually eager of reading this blog's post to be updated daily.
It includes nice information.

my web blog - dating campbeltown: https://ternopil.nicefreedatingall.com
Цитировать
 

Добавить комментарий


Наверх