Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Possible to not call SLIDER and TAB plugin JS on a particular article?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Possible to not call SLIDER and TAB plugin JS on a particular article? (Read 5604 times)
seadhna
Hero Member
Posts: 507
Possible to not call SLIDER and TAB plugin JS on a particular article?
«
on:
May 10, 2021, 15:36:12 »
Hi there,
in one article, I am using Tablesaw JS (
https://www.filamentgroup.com/lab/tablesaw.html
) which conflicts with other JS files and causes the "Scroll to Top" module to not appear.
The conflicts are removed by unpublishing the Slider and Tab plugins.
When these two plugins are unpublished, the following scripts are not called:
/components/com_content/plugins/slider/includes/slider_jquery.js
/components/com_content/plugins/tab/includes/tab_jquery.js
and everything works fine - Tablesaw and Scroll-to-Top module.
However, unpublishing these plugins is not a good solution, because they are needed on the website.
Is there a way to stop these plugin scripts being called in the <HEAD> on just one article? They are not needed on the page where the Tablesaw JS is used.
Thanks for any advice you can give!
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #1 on:
May 13, 2021, 22:41:53 »
The plugins load their JS/CSS files only when they are used in an article. If not, they should not load anything. So your problem, normally, should not appear... But as the problem exists it looks like these plugins do not work correctly (they add data to page headers without been used). Can you write me the URLs of these plugins in elxis.net to take a look?
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 507
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #2 on:
May 14, 2021, 17:16:59 »
Yes, I was thinking the correct behaviour was that they should not appear. The three lines which appear in the code when these plugins are installed are:
<script src="[root]/components/com_content/plugins/tab/includes/jquery.easing.js"></script>
<script src="[root]/components/com_content/plugins/slider/includes/slider_jquery.js?v=1621001292"></script>
<script src="[root]/components/com_content/plugins/tab/includes/tab_jquery.js?v=1621001554"></script>
The TAB plugin is here:
http://elxis4.elxisitalia.com/plugin-for-elxis/tab-plug-in.html
The SLIDER plugin was here, but the URL is currently 404:
http://elxis4.elxisitalia.com/plugin-for-elxis/accordion-slider.html
Logged
seadhna
Hero Member
Posts: 507
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #3 on:
May 14, 2021, 17:21:01 »
I have tested on the latest version of Elxis with templates FIVE and FLEX, if that helps.
I also tested with template Aurora - it does NOT happen with Aurora, BUT that installation has not been upgraded yet, so I don't know if the important difference is the version of Elxis or the template...
Logged
seadhna
Hero Member
Posts: 507
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #4 on:
May 14, 2021, 17:51:45 »
oh, here are the links in Elxis.net:
Slider plugin:
https://www.elxis.net/edc/effects/36.html
Tab plugin:
https://www.elxis.net/edc/effects/35.html
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #5 on:
May 14, 2021, 20:16:21 »
I fixed it. Update both plugins in
version 1.2
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 507
Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
«
Reply #6 on:
May 15, 2021, 20:07:26 »
Yes, perfect. Much appreciated!!
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Possible to not call SLIDER and TAB plugin JS on a particular article?