We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51942
    • 4 Posts
    I have the following code under modx site. And we want do this carousel automaticaly. How can I code it to do this?

    <div style="overflow: hidden;" class="">
    <div class="container">
    <div class="row">
    <div class="col-sm-12">
    [[+category_type:is=`Bargain,Reduced`:then=`
    <h3 class="" style="text-align: center; font-weight: 600; font-size: 23px;">

    Our Bargain & Reduced Properties
    </h3>
    `:else=`
    <h3 class="" style="text-align: center">
    <strong>Featured</strong> Properties
    </h3>
    `]]
    [[+category_type:is=`Bargain,Reduced`:then=``:else=`
    <p style="text-align: center">
    Here’s a list of our featured
    [[+category_type:is=`Bargain,Reduced`:then=`bargain and reduced`]]
    properties...
    </p>
    `]]
    <div class="jcarousel-wrapper jcarousel-newdev">
    <div class="jcarousel">
    <ul class="2carousel-indicators" id="prop_images_indicators">
    [[+category_type:is=`Bargain,Reduced`:then=`
    [[!xpdoPropertiesSelect_reduced?]]
    [[!xpdoPropertiesSelect_bargain?]]
    `:else=`
    [[!xpdoPropertiesSelect?]]
    `]]
    </ul>
    </div>
    <a href="#" class="jcarousel-control-prev" data-jcarouselcontrol="true">‹</a>
    <a href="#" class="jcarousel-control-next" data-jcarouselcontrol="true">›</a>
    </div>
    </div>
    </div>
    </div>
    </div>
    If you want to check the site is bit.ly/28909UM under Featured Properties

    rotation carousel transition modx
      • 22840
      • 1,572 Posts
      Looks like its using jcarousel which has a autostart function

      More info on http://sorgalla.com/jcarousel/docs/plugins/autoscroll/reference/configuration.html
        • 28432
        • 372 Posts
        You have to find the javascript call and add autostart config to autostart autoscrolling like Paulp suggest you.
          • 51942
          • 4 Posts
          Thanks to both of you! now is working.
            • 28432
            • 372 Posts
            Quote from: redline at Jul 28, 2016, 06:33 AM
            Thanks to both of you! now is working.

            Nice!
            Can you click on the answered flag to make the post answered ?