close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

designing a webshop without a table

Thread began 10/13/2009 1:11 am by ssemere321379 | Last modified 10/16/2009 6:17 pm by Ray Borduin | 1085 views | 5 replies |

ssemere321379

designing a webshop without a table

Hi, I've designed a website using only CSS, without a table. Now comes the second part binding dynamic data using eCart. Since I've used DIVs with out table cells, I am wondering if it is time consuming to bind dynamic data in DIVs. Do you think I should I stick with table cells? As an example a customer buys product A. Then I want the customer to see what others have bought and what the customer have viewed lately. Now my question is where do I place the dynamic data since I am using DIVs instead of Cells?
what happens with those static DIVs I have designed? how can I make them invisible and replace them with dynamic data?

Sign in to reply to this post

Ray BorduinWebAssist

It is hard to say without looking at your current structure.

You may be able to simply drag and drop the eCart values from the bindings tab and apply the "repeat cart region" server behavior to show all of the rows. Tables aren't required, but can sometimes be helpful when organizing tabular data like the rows of a cart.

Sign in to reply to this post

ssemere321379

I understand it is not easy to reply without having a clearly formulated question. I guess I wrote the question out of moments frustration. Here is the thing:
I have a RECENTLY VIEWED ARTICLES on a right sidebar. I want 3 articles to be placed there dynamically.
the following is a static version which I want to be dynamic.

<div id="sidebar">
<h4> Recently viewed articles:</h4>
<ul><li>
<a> product_1 <hr/>
<img src="product_1.jpg" />
</a>
<div>
<span> 10$ </span>
</div>
</li>
<li>
<a> product_2 <hr/>
<img src="product_2.jpg" />
</a>
<div>
<span> 15$ </span>
</div>
</li>
<li>
<a> product_3 <hr/>
<img src="product_3.jpg" />
</a>
<div>
<span> 20$ </span>
</div>
</li>
</u>
</div>

How would you normally do that? For esthetic reasons you would not want the right sidebar to be empty at any given
time. How would you do that? Is there any PHP code in the eCart I can use to handle "recently viewd articles"?
If not any tips how to do that and may be good to include such functionality for future uppgrade I guess. May be it is easy to do thyself, but I am not good at PHP yet.
Thanks

Sign in to reply to this post

Ray BorduinWebAssist

You would probably maintain a database table of recently viewed articles and display the top 3... essentially create and maintain the table in the database. It would probably mean inserting into a recently viewed table whenever an article is viewed so that you could create a recordset from that table to be displayed.

Then to display populate the first list item and use "repeat region" to show just the top three.

Sign in to reply to this post

ssemere321379

Hey Ray,
thanks for your reply. I have one more general question:
Since my left sidebar is to show dynamic data of "recently viewed articles", should all the html structures created dynamically except of course the DIV that holds the left sidebar? That is how would a pro like you populate a whole region like sidebar with dynamic data? I am asking this because I know how the sidebar should look like when it is populated with dynamic data.But I am not sure which place holders (HTML elements)are allowed in the static page to accept dynamic data? Are there any restrictions for the eCart with which HTML elements it can be binded? that is should the dynamic data be placed only on table cells and lists or any HTML tag can do?

Sign in to reply to this post

Ray BorduinWebAssist

I would populate it first with static data and get the look and feel how I wanted and then drag and drop to replace the static data with dynamic content. Then delete duplicated rows and apply the "repeated region" to repeat the single row for all of the records in the database.

There are no restrictions on when and where to use dynamic data other than you need to be on .php page and not an .html page.

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