We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Hi everybody,

    i try to apply an extra class to every third picture of a gallery
    right now i’m experimenting with the following:
    [+maxigallery.picpagenumber:math=`?%3`:is=`2`:then=`margin`:else=``+]

    this prints "margin" to the second picture, and from there on to every third.
    How can i get it to start on the third picture?
    [+maxigallery.picpagenumber+] starts counting from 1

    ...or is there a better/other way to accomplish this?

    thanks, j
      • 9130
      • 171 Posts
      Did you try:
      [+maxigallery.picpagenumber:math=`?%3`:is=`0`:then=`margin`:else=``+]
        • 26931
        • 2,314 Posts
        hey etal,

        thanks - that worked smiley