jgulledge19 / Slideshowmanager

⛔️ currently unmaintained ⛔️ Slideshowmanager for MODX Revolution
http://rtfm.modx.com/display/ADDON/Slideshow+Manager
8 stars 3 forks source link

Multi context Babel issue #2

Closed AmaZili closed 12 years ago

AmaZili commented 12 years ago

It seems that the snippet is not working in a multi context site (Babel two contexts french and english)

I may be the first to try it.

There is absolutly no message, nothing, but no display neither.

The code from the browser gives just :

for a resource code of :

[[!jgSlideShow &album_id=`4`]]

where 4 is the id number of the album (I tried a lot...)

The js or css code related to the snippet aren't loaded either.

I did a test on the same server same modx release 2.2 on a different domain without multiple contexts (no babel), and it worked like a charm.

Philippe

jgulledge19 commented 12 years ago

Are you sure that the Snippet call is not just missing the "?"?

It should be:

[[!jgSlideShow? &album_id=`4`]]
AmaZili commented 12 years ago

I check this asap

AmaZili commented 12 years ago

Done some homework on it...

First : In the multilingual context, it is mandatory to put a site start on every context to have it working properly with modx 2.2 (not documented in the tutorials or docs). Second : It appear I was using boilerplate templates (both boilerplateX ad new anselm one), and there is a jQuery google CDN declaration in the footers that conflict with the one in the snippet. I commented the one in the footer, and made it working. A good enhancement could be to check if a jQery library is already loaded or to find a way to integate with html5 bolilerplates.

Happy if my small contribution helps.

jgulledge19 commented 12 years ago

New option in 1.1pl do this: [[!jgSlideshow? &album_id=2 &loadJQuery=false ]] This will prevent jQuery from loading in the snippet call.