Page 1 of 1
[closed] cms_jquery : exclude doesn't work
Posted: Mon Jun 08, 2015 2:41 pm
by Franck
Tested on 2 V2.0 r10024 installations.
When using the exclude parameter in the cms_jquery tag in the head of a template, all files in the list to exclude are still loaded. Not the case in current V1.11/V1.12.
Re: cms_jquery : exclude doesn't work
Posted: Tue Jun 09, 2015 12:56 am
by calguy1000
I just tested:
{cms_jquery exclude='jquery,jquery-ui'} and it worked as expected
I had it in the page metadata section of an NCleanBlue page.
Re: cms_jquery : exclude doesn't work
Posted: Tue Jun 09, 2015 11:45 am
by Franck
Oh, no need to put the complete file name, then? I'll try this.
Re: cms_jquery : exclude doesn't work
Posted: Tue Jun 09, 2015 11:54 am
by Franck
It's working as you wrote it. Until now, I've always successfully used full files names as mentioned in the help page of the tag.
Maybe it could be a good idea to modify the help documentation and give examples with shorthand names.
Re: cms_jquery : exclude doesn't work
Posted: Tue Jun 09, 2015 6:27 pm
by calguy1000
Yep, I updated the help. Specifying filenames was a bad idea anyways.
as that would mean a breakage on any upgrade if we upgrade the libraries.
Re: cms_jquery : exclude doesn't work
Posted: Tue Jun 09, 2015 6:57 pm
by Franck
Absolutely. By the way, I was surprised by this choice to be honest.
French translation coming.