jquery.gallery

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

jquery.gallery

Post by CMSmonkey »

I am trying to add the following script to my site:

Code: Select all

	{literal}
<__script__ type="text/javascript">
jQuery.gallery('gallery/Gallery.swf', 'gallery/gallery.xml', {width: '700px', height: '300px', background: 'transparent'});
</__script>
{/literal}
However, I cannot get it to work. It doesn't show errors, it just doesn't show anything. Is there any thing I need to add to it or a plugin I need to download to get this function to work?

Thanks in advance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: jquery.gallery

Post by Rolf »

Are the file paths correct?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: jquery.gallery

Post by CMSmonkey »

Hi Rolf,
Thanks for the reply.

I used the full URL path. I also used the full URL path of the related js scripts I call in the header of the template. Nothing works.

I've since just called it from an HTML file in my directory and used <__iframe> to display it in my CMSMS site.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: jquery.gallery

Post by psy »

If you placed your jq in your gallery tpl it will most likely appear above your call to jq and your page will fail.

What I do is assign js calls in a tpl to a var, eg pagjs.

In my page tpl, I put {$pagejs} at the bottom of my page below the call to jq.

And also delete any js scripts from the gallery.
Post Reply

Return to “The Lounge”