Отключение 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 #324 Melodee 15.10.2021 01:44
Hello! I could have sworn I've been to this site before but after checking through some of the post I realized it's new to me.

Nonetheless, I'm definitely happy I found it and I'll be bookmarking and checking back often!

Nowy kierunek Władzy i Propagandy zaprasza przyszłych absolwentów
Nowy kierunek Władzy i Propagandy zaprasza przyszłych absolwentów
Nowy kierunek Władzy i Propagandy zaprasza przyszłych absolwentów

Also visit my blog post ... Władza i Propaganda dla prawdziwych VIP-ów: http://pcz.pl
Цитировать
 
 
0 #323 Billie 12.10.2021 12:25
What's up, for all time i used to check webpage posts here in the early hours in the daylight, because i like to learn more and more.


Also visit my webpage: write my college essay for me: https://www.freeads-tameside.co.uk/user/profile/7251
Цитировать
 
 
0 #322 Ivory 11.10.2021 16:50
Dooes anyone know whether Smokeless Smoking based іn 1001 E Bidwell St.
is ѕtill open? Or has it clօsed dᥙring the pandemic?
Thanks in advance!

Alsso visit my webpage ... table tennis bats: https://www.medicalnewstoday.com
Цитировать
 
 
0 #321 Alvaro 11.10.2021 11:51
I blog often and I seriously appreciate your content.
This article has truly peaked my interest. I am going to
bookmark your website and keep checking for new information about once per week.
I opted in for your Feed as well.

Here is my web blog :: amoxicillin 500: https://amoxicillinc.com/
Цитировать
 
 
0 #320 Rosetta 10.10.2021 23:06
Wow, fantastic blog structure! How long have you been running a blog for?

you made running a blog look easy. The whole look of your web site
is excellent, let alone the content material!

My site - canadian pharmacy
online: http://predit.ru/Forum/index.php/1594234-protein-identified-that-signifies-whether-or-not-memories-could/0
Цитировать
 
 
0 #319 Octavia 09.10.2021 15:07
Does your site have a contact page? I'm having problems locating it but,
I'd like to send you an email. I've got some ideas for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it improve over time.


Feel free to visit my web-site: http://www.wklejto.pl/916378: http://www.wklejto.pl/916378
Цитировать
 
 
0 #318 Claire 08.10.2021 04:12
Wonderful, what a website it is! This website presents useful
information to us, keep it up.

My page; Buy Zelefion online: https://rldta.com/categories/Anti-Fungal/Lamisil/Zelefion
Цитировать
 
 
0 #317 Liza 07.10.2021 20:44
Зовём попроведать сервис https://pornomirxxx.com - русское порно: https://porno-ru.site
отданный сексу
Цитировать
 
 
0 #316 Mallory 07.10.2021 05:10
Dօes ɑnyone know ԝhether BS Vapes based inn 8154Ritchie
Hwy, Suite В is still οpen? Ⲟr has it closed during thе pandemic?
Thɑnks in advance!

Also visit my websiite ... 127-C
South Blackstock Ꮢd: https://www.hempvada.com/blogs/cbd-blogs/cbd-for-pain-does-it-work
Цитировать
 
 
0 #315 Marquita 06.10.2021 16:13
Я не секс с мамой: https://pornomamki.onlineмог удержаться комментариев.
Хорошо написано!
Цитировать
 
 
0 #314 Jonathon 05.10.2021 21:43
You actually make it seem so easy with your presentation but
I find this topic to be really something which I think I would never
understand. It seems too cojplex and very broad for me.
I am looking forward for your next post, I will try to get the hang of it!



my blog ost :: sexyfatmature.net: https://sexyfatmature.net
Цитировать
 
 
0 #313 Starla 05.10.2021 14:59
http://info.hoippo.km.ua/user/EduardoHarmer/: http://info.hoippo.km.ua/user/EduardoHarmer/
Цитировать
 
 
0 #312 Demetria 05.10.2021 05:36
Hurrah, that's what I was exploring for, what a data!
present here at this web site, thanks admin of this web page.


Review my web-site: femboy: https://gay0day.com/tags/femboy/
Цитировать
 
 
0 #311 Efrain 05.10.2021 03:00
http://novokosino2.com/showthread.php?t=22633&s=b2461a4132b4de4cd1cb1ca58723ada2&pagenumber=: http://novokosino2.com/showthread.php?t=22633&s=b2461a4132b4de4cd1cb1ca58723ada2&pagenumber=
Цитировать
 
 
0 #310 Frederick 04.10.2021 23:20
I have read so many articles regarding the blogger lovers howeve this paragraph
is in fact a pleasant piece of writing, keep it up.


Also visit my web-site; hentai0day.com: https://Hentai0Day.com/
Цитировать
 
 
0 #309 Jacquelyn 04.10.2021 23:02
Thanks for finally talking about >Отключение Mootools в Joomla 2.5 (1.7)
Цитировать
 
 
0 #308 Lance 04.10.2021 10:47
Yes! Finally something about milf porn.

Here is my website top-asian-americans.info: https://Top-Asian-americans.info/
Цитировать
 
 
0 #307 Rodger 04.10.2021 09:00
My brother recommended I might like thiks website. He was totally right.
This post actually made my day. You cann't imagine just how much time I had spent for this info!
Thanks!

Also visit my page ... https://2lamour.net: https://2lamour.net
Цитировать
 
 
0 #306 Lucinda 04.10.2021 01:19
Зовем навестить ресурс https://pornomirxxx.com - порно мир: https://pornomirxxx.com приобщенный видео эротике
Цитировать
 
 
0 #305 Janna 03.10.2021 23:22
Appreciating the persistence you put into your site and
detailed information you present. It's good to come across a blog
every once in a while that isn't the same old rehashed information.
Fantastic read! I've saved your site and I'm including
your RSS feeds to my Google account.

Here is my site :: visit website: http://www.kabardistanhorti.com/kadis-pertanian-hadiri-gerakan-pengendalian-tikus-petani-curhat-soal-jembatan-tani/
Цитировать
 
 
0 #304 Mauricio 03.10.2021 20:01
I've been exploring for a little for any high-quality articles or weblog posts on this kind of house .
Exploring in Yahoo I at last stumbled upon this website.

Studying this info So i'm glad to exhibit that I have a very good uncanny feeling I found out exactly what
I needed. I most surely will make certain to don?t omit this web
site and give it a look regularly.

my blog post; luckyangel.info: https://luckyangel.info
Цитировать
 
 
0 #303 Emely 03.10.2021 14:25
Undeniably imawgine that that you said. Your favourite reason appeared to be on the web the simplest
thing to consider of. I say to you, I certainly get
anmoyed while people consider issues that they plainly don't knolw about.
You managed to hit the nwil upoon the highest as neatly as defined ouut
the whole thing ithout having side-effects , folks can take a signal.

Will probabl be back tto get more. Thank you

Have a look at my web-site ... gay porn: https://gay0day.com/tags/gayporn/
Цитировать
 

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


Наверх