We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26163
    • 43 Posts
    Hello,

    I am using ditto to display picture gallery. How do I call ditto to include <div class="clearleft"></div> after every 3 pictures in a row. The 4th picture should start in a new row with clear div class above it and so on and so forth?

    Regards,

    Santosh
      • 26163
      • 43 Posts
      Ok I found the solution. I could have done it by using:
      [+ditto_iteration:math=`?%3`:eq=`0`:then=`<div class="clearleft"></div>`+]