3 events
when toggle format what by license comment
Aug 16, 2016 at 9:03 comment added JCOGS Design Hi kala233. Ahah - sorry I wasn't thinking straight with the mod statements. Change the second {if} statement to be {if count % 2 == 0}. Should work then. There will then be an edge case if you have no entries in your list (you will get the closing <div> but no opening one) - if this is likely to happen add && count > 0 to the conditional for the second {if}. Good luck!
Aug 15, 2016 at 13:39 comment added kala233 Hi Gavin. Thanks for this, I've tried different variations and still having issues. It's outputting a section every 2 entries but only wrapping 1 entry in the section. I need a section outputted every two entries but with the class 'section--light-grey' after 2 entries.
Aug 9, 2016 at 16:07 history answered JCOGS Design CC BY-SA 3.0