Our goal is a look like this --
http://www.a2armory.com
Except the 9 content-boxes in the 3x3 grid will be generated from a single Ditto call.
The Ditto call looks like this:
[[Ditto? &startID=`2` &hideFolders=`1` &depth=`100` &tpl=`miniProduct` &display=`9` &paginate=`1` &sortBy=`productPrice` &sortDir=`DESC` &paginateAlwaysShowLinks=`0` &debug=`0` &extenders=`request` &tplPaginatePage=`page` &tplPaginateCurrentPage=`currentPage` &tagDelimiter=`,` &tagData=`productFilters` &tagMode=`onlyAllTags` &tags=`mannequins,children`]]
The ditto call uses a simple .tpl that just contains a thumbnail image and a little bit of text about each product.
The .tpl is this:
<div class="mini_product">
<a class="greylink" href="[~[+id+]~]">
<img src="/assets/phpThumb/phpThumb.php?src=/[+productImage+]&w=150&h=150" />
</a>
<ul>
<li>[+title+]</li>
<li>$[+productPrice+]</li>
</ul>
</div>
I am wondering if there is a way to have the 9 blocks of content correctly populate the 3x3 grid, first across, then down and across in the middle row, then down and across in the bottom row.
I am open to any type of CSS or HTML ideas -- I was planning to use a 3 column CSS grid generated here -
http://www.pagecolumn.com/3_col_generator.htm
Would have liked to use a 5 column CSS grid, but I don’t think there’s any way to instruct Ditto to move its output into the next column div.
there may be something better. Maybe use the 3-column grid and tweak the sizing of the .tpl so that no more than 3 items fit across? Or is there a way to tell Ditto to add a line break after 3 items?
Thanks!