Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on May 10, 2021, 15:36:12

Title: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: seadhna 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!
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: datahell 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?
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: seadhna 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
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: seadhna 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...
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: seadhna 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
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: datahell on May 14, 2021, 20:16:21
I fixed it. Update both plugins in version 1.2
Title: Re: Possible to not call SLIDER and TAB plugin JS on a particular article?
Post by: seadhna on May 15, 2021, 20:07:26
Yes, perfect. Much appreciated!!