close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

can DataAssist 2 make products display in 2 rows of 3?

Thread began 6/30/2010 10:18 am by skyll237680 | Last modified 7/02/2010 3:33 pm by skyll237680 | 3930 views | 10 replies

skyll237680

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']; ?>&nbsp; </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 :)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...