-
- 388 Posts
That is so weird because the snippets and the jquery has nothing in common!
i think you need to check the code inside the snippet, may be it is calling the jquery.
Usually with modx you just need to call the jquery in the head, and that is enough to use it in your site, snippets are php codes, if it is calling something is because it is inside the snippet!
--
ysanmiguel.com
-
- 388 Posts
Delete the ones inside the snippets and leave only the one that you need in the head of your template!
--
ysanmiguel.com
-
- 388 Posts
Good, your welcome!
and please add [Solved] the title!
Cheers!
--
ysanmiguel.com
Most snippets have a property to load the JQuery library or not.
AdvSearchForm has a property in its Properties tab if you don't want to use &addJQuery=`0` as a property in the snippet tags.
http://rtfm.modx.com/display/ADDON/AdvSearch.AdvSearchForm#AdvSearch.AdvSearchForm-Custominstallation
MxCalendar has addJQ, so you can use &addJQ=`0` as a property in the snippet call.
http://rtfm.modx.com/display/ADDON/mxCalendar
-
- 104 Posts
Thanks sottwell
but will this anable me to use jquery call for snippet anyway?
If you want the snippet to add the jquery library, just don't add the property. They'll add the library by default (&addJQuery=`1`)
This property is useful for when you have more than one snippet that wants to add a jQuery library, or if you have it manually in your template. I usually have it in my template when most if not all pages will be using it, so I don't have to worry about which version is getting installed.
Most plugins that need it will also have a configuration property to have the plugin install the library or not; check the documentation for your plugins and snippets.