Hi Forum
I have a page on a site that will display products posted in a grid - basically 3 columns. So the first row has 3 products, then I have a clear div then re-use the 3 column code for the next 3 products, clear again and so on.
Here is the basic html:
<div class="grid_3">
<p>Product 1</p>
</div>
<div class="grid_3">
<p>Product 2</p>
</div>
<div class="grid_3">
<p>Product 3</p>
</div>
<div class="clear"> </div>
<div class="grid_3">
<p>Product 1</p>
</div>
<div class="grid_3">
<p>Product 2</p>
</div>
<div class="grid_3">
<p>Product 3</p>
</div>
<div class="clear"> </div>
The problem I have is how do I get Ditto to output 3 products, then the clear div, then another 3, then clear etc...
Here’s the code I’m using so far:
[[Ditto? &orderBy=`createdon ASC` &tpl=`test_post`]]
<div class="clear"> </div>
test_post chunk:
<div class="grid_3">
[+content+]
</div>
So I just need to figure out how to get 3 posts (1 row) at a time to output, then the clear div, then the next 3, all on the same page.
If anyone could help me with this, it would be greatly appreciated.
Thanks,
Preddz