Filter CMS items by even or odd "Number" field

I'd like to be able to filter CMS items which use the "Number" field by whether or not the number is even or odd.

Say I'm making a portfolio and I want to achieve a specific masonry layout. It would make it easier to organize my elements if I could filter the items by even or odd number; this way I could control which elements go on the right or left side.

  • Josh Jacobs
  • May 21 2020
  • Reviewed
CMS
  • Luke Vanhaezebrouck commented
    21 May 10:42pm

    I agree. For my use case it would make it easier to order accordion items left to right in a 2 column layout. To work for 3 column layout there would need to be a way to modulo on a number filter.