We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42802
    • 96 Posts
    Sebastian Zahn | ingroove.uy Reply #1, 12 years ago
    I have this problem:

    I use a carrousel plugin for a responsive website, this is the plugin call inside a chunk:
    $("#restaurantHomeSlide").utilCarousel({
            responsiveMode : 'breakPoints',
            breakPoints : [[500, 1], [850, 2], [1200, 3], [1900, 4]],
            autoPlay : true
    });


    Modx seems to process the "[[]]" and give this results on the page code:

    $("#promosHomeSlide").utilCarousel({
            showItems : 1,
            breakPoints : ,
            autoPlay : true
    	});


    This output throws several javascripts errors.

    Any ideas?

    Thanks, Sebastián.
      • 3749
      • 24,544 Posts
      Try putting a space between the opening brackets. That will keep MODX from processing it as a tag.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting