close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Product Result Page (left to right, instead of up to down)

Thread began 5/20/2010 6:32 pm by ch1974us345597 | Last modified 8/01/2010 12:09 pm by Roland Rogers | 1080 views | 6 replies |

ch1974us345597

Product Result Page (left to right, instead of up to down)

How can I create a product result page that the listings go horizontal (left to right), instead of the current format (up to down).

Example:

Product Name #1 --------> Product Name #2 ------------> Product Name #3
Vendor -----------------> Vendor ---------------------> Vendor
Price -------------------> Price -----------------------> Price

I tried using the repeating table, but each product listing was identical. Each column was identical.

Thanks for your time,
Craig

Sign in to reply to this post

Miguel

Move your repeat code

from

<?php do { ?>
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">



to

<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
<?php do { ?>



And at the end of the repeat

From

</tr>
<?php } while ($row_WADAYOURRecordset = mysql_fetch_assoc($WADAYOURRecordset )); ?>



To

<?php } while ($row_WADAYOURRecordset =  mysql_fetch_assoc($WADAYOURRecordset )); ?>
</tr>



Hope this helps let us know :D

Sign in to reply to this post

ch1974us345597

Product Result Page (left to right, instead of up to down)

Actually, the syntax you posted is not on my pages. How frustrating.

Sign in to reply to this post

CraigRBeta Tester

Easiest way is to go to the DataAssist Wizard.

Select results page (only) in step 1

On step 3 of the wizard, choose page type as public (not administrative)
This then allows you to show recordset paging as x rows and y columns

Sign in to reply to this post

Roland Rogers

Originally Said By: Sades
  Move your repeat code

from

<?php do { ?>
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">


to

<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
<?php do { ?>


And at the end of the repeat

From

</tr>
<?php } while ($row_WADAYOURRecordset = mysql_fetch_assoc($WADAYOURRecordset )); ?>


To

<?php } while ($row_WADAYOURRecordset =  mysql_fetch_assoc($WADAYOURRecordset )); ?>
</tr>


Hope this helps let us know :D  



>>>>>

This makes sense but if there should be 3 columns what is repeating the <tr> tags? I get the columns but they go from left to right and don't drop to another row after 3.

For 5 items it should display as:
X X X
X X

With this code shift it is now:
X X X X X

Any thoughts? Anyone?

Sign in to reply to this post

CraigRBeta Tester

please zip your page and upload it, i will take a look at the code

Sign in to reply to this post

Roland Rogers

I suspected something was wrong in the generation of code and ordering of table tags. I was right.

I created a test page with just a recordset calling up one title field. I used the Repeating Table wizard and was able to generate the code successfully. I compared this code to the one on the more complex page I am designing to see where it went wrong. It had put the table tag inside the "do" tag. It also had the Alternate content code outside of the "do" loop.

I am all set now, except still baffled why it generated the code improperly!

Sign in to reply to this post

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...