We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34459
    • 134 Posts
    Hi, I have a problem with my site. I'm using a supersize slider.
    <script type="text/javascript">
    			
    			jQuery(function($){
    				
    				$.supersized({
    				
    					// Functionality
    					slide_interval          :   3000,		// Length between transitions
    					transition              :   1, 			// 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
    					transition_speed		:	700,		// Speed of transition
                        thumb_links             : 0,
    															   
    					// Components							
    					slide_links				:	'blank',	// Individual links for each slide (Options: false, 'num', 'name', 'blank')
    					slides 					:  	[			// Slideshow Images
                        
                                                     [[!getImageList?
                                                         &tvname=`Gallery`
                                                            &tpl=`galeria`]]
    												]
    					
    				});
    		    });
    		    
    		</script>


    As you can see instead of a
    {image :'assets/fashion/color/1.jpg', title : 'Image Credit: Maria Kazvan', thumb : 'assets/1.jpg', url : 'http://www.nonsensesociety.com/2011/04/maria-kazvan/'},


    I was trying to call migx(which is probably horribly wrong:) so you could add images from template variables but I only get a blank page when I try to view it.
    Any pointers how I can make it work?
      Check out blackflow.pl
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If that's part of your template or content, it will work.

      The first thing that you need to do is to test the snippet call by itself and make sure it's returning exactly the structure your javascript needs. Then you can use the snippet in your javascript code block.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org