can DataAssist 2 make products display in 2 rows of 3?
I am trying to figure out if DataAssist 2 has a server behavior that can display my products in 2 rows of 3. Each product has one image with prod number & link text (which links to a detail page) each is contained in a single dynamically generated table, one table containing each product for each record in the database, but DW just repeats the product tables vertically 6 to a page, which is not what I want. I need 2 rows of 3, 6 per page.
The following is the code generated by DWCS3 which puts the products in a horizontal line of 6 to a page, which I am wondering if there is a DataAssist server behavior that can be applied to force it to display the products, 6 to a page, but in 2 rows of 3 each.
<table border="0" align="center" id="repeatingTable">
<?php do { ?>
<tr>
<td>
<p align="center"><?php echo $row_rsgallery['ItemID']; ?> </p>
<p align="center"><a href="gallery_detail.php?recordID=<?php echo $row_rsgallery['ItemID']; ?>"><img src="images/113x170_thumbs/<?php echo $row_rsgallery['ItemThumb']; ?>" alt="exotic wooden creations online fine art gallery" name="galleryThumb" id="galleryThumb" /></a> </p>
<p align="center"><?php echo $row_rsgallery['ItemSKU']; ?> </p> </td>
</tr>
<?php } while ($row_rsgallery = mysql_fetch_assoc($rsgallery)); ?>
</table>
<br />
<table border="0">
<tr>
<td><?php if ($pageNum_rsgallery > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_rsgallery=%d%s", $currentPage, 0, $queryString_rsgallery); ?>">First</a>
<?php } // Show if not first page ?> </td>
<td><?php if ($pageNum_rsgallery > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_rsgallery=%d%s", $currentPage, max(0, $pageNum_rsgallery - 1), $queryString_rsgallery); ?>">Previous</a>
<?php } // Show if not first page ?> </td>
<td><?php if ($pageNum_rsgallery < $totalPages_rsgallery) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_rsgallery=%d%s", $currentPage, min($totalPages_rsgallery, $pageNum_rsgallery + 1), $queryString_rsgallery); ?>">Next</a>
<?php } // Show if not last page ?> </td>
<td><?php if ($pageNum_rsgallery < $totalPages_rsgallery) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_rsgallery=%d%s", $currentPage, $totalPages_rsgallery, $queryString_rsgallery); ?>">Last</a>
<?php } // Show if not last page ?> </td>
</tr>
</table>
Records <?php echo ($startRow_rsgallery + 1) ?> to <?php echo min($startRow_rsgallery + $maxRows_rsgallery, $totalRows_rsgallery) ?> of <?php echo $totalRows_rsgallery ?> </td>
thanks so much, I've been trying to solve this for days now. I purchased the DataAssist 2 upgrade in hopes that it will do this. I have found WA documentation here ( da_ft_08.htm ) which seems to indicate this is possible, but not real clear on how to go about it. I would be grateful to anyone who could steer me in the right direction :)