We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23515
    • 40 Posts
    pixillionsaul Reply #1, 18 years ago
    Hi guys,

    trying some jquery carousel stuff, and baisically I need to output a counting number in the output of the ditto call, for example:

    the chunk would be something like:

    <div class="carouselitem [+counter+]">content</div>

    and the output of 6 items would be:

    <div class="carouselitem 1">content</div>
    <div class="carouselitem 2">content</div>
    <div class="carouselitem 3">content</div>
    <div class="carouselitem 4">content</div>
    <div class="carouselitem 5">content</div>
    <div class="carouselitem 6">content</div>

    Any ideas?

    Cheers



      • 23515
      • 40 Posts
      pixillionsaul Reply #2, 18 years ago
      Way to solve my own problem, after having a second dig around in the php, I found the "ditto_iteration" placeholder.

      Thanks, me!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        It’s amazing how many times I’ve found my own solution anywhere from 2 minutes to a few hours after asking for help! Sometimes just the formulating of the post clarifies the thinking.
          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