The title probably doesn't make any sense at all, so I'll explain it like this:
I am going to be retrieving entires from my database and I want to format them so only 5 entires can go into each cell. Each row will have two cells, and like I said, 5 entires in each cell.
So, an example of the output would be:
| Entry 1 | | Entry 6 |
| Entry 2 | | Entry 7 |
| Entry 3 | | Entry 8 |
| Entry 4 | | Entry 9 |
| Entry 5 | | Entry 10 |
| Entry 11 | | Entry 16 |
| Entry 12 | | Entry 17 |
| Entry 13 | | Entry 18 |
| Entry 14 | | Entry 19 |
| Entry 15 | | Entry 20 |
And of course, I need it to show a cell with if there is an uneven number of cells. And naturally, if the last cell has only say... 3 entires, I don't want the script to mess up... I would just need it to show those 3 if that's all there is.
I would prefer using the foreach Smarty function, rather than section (foreach uses much less code when the template is compiled)
Any help is greatly appreciated! :)