Re: Multi-Row Tables from a search.

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13510
interpreted = N
texte = On 9/17/97 5:23 PM, Updates wrote:>I am trying to create a multi row table using the results of a search. I >have twelve products and I want to have four products on each row. What is >the easiest possible way to do this? > >Thank You, > >Chris MartinTry:[search db=databasepath¶meters]
[founditems] [showif [index]\4] [/showif] [/founditems]
[shortitemdescription]
$[format thousands 10.2f][price][/format]
OO
[/search]This will create a four-items-per-row table. Each cell will contain a two-row, smaller table with a picture and a description for each item, along with a price. I used 00 simply as a spacer. Just make sure that the spacer font color matches the background.I also named each item's image based on the sku number. This simplified image management.I worked on this like a rat in a maze - I even tried creating temporary databases to hold row information so the server would grind away at the hard drive when even one visitor hit the site.The miracle command which was undocumented at the time is:[showif [index]\4] [/showif]This thing of beauty terminates a table row everytime the number of found items is divisible by four.Good luck! Pat McCormick Associated Messages, from the most recent to the oldest:

    
  1. Re: Multi-Row Tables from a search. (Mike Heininger 1997)
  2. Re: Multi-Row Tables from a search. (Pat McCormick 1997)
  3. Multi-Row Tables from a search. (updates@virtualrep.com (Updates) 1997)
On 9/17/97 5:23 PM, Updates wrote:>I am trying to create a multi row table using the results of a search. I >have twelve products and I want to have four products on each row. What is >the easiest possible way to do this? > >Thank You, > >Chris MartinTry:[search db=databasepath¶meters]
[founditems] [showif [index]\4] [/showif] [/founditems]
[url][sku][/url]&cart=[cart] border=0>
[shortitemdescription]
$[format thousands 10.2f][price][/format]
OO
[/search]This will create a four-items-per-row table. Each cell will contain a two-row, smaller table with a picture and a description for each item, along with a price. I used 00 simply as a spacer. Just make sure that the spacer font color matches the background.I also named each item's image based on the sku number. This simplified image management.I worked on this like a rat in a maze - I even tried creating temporary databases to hold row information so the server would grind away at the hard drive when even one visitor hit the site.The miracle command which was undocumented at the time is:[showif [index]\4] [/showif]This thing of beauty terminates a table row everytime the number of found items is divisible by four.Good luck! Pat McCormick Pat McCormick

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Cloud hosting and local development (2019) Nested [SEARCH] and [REPLACE] problem. (1997) Database Field Additions (2000) Access Denied! But why? (1997) Tip O' the Week (1996) [WebDNA] No more SQL in 7.1? (2012) WebCat2b12 CGI Mac - [shownext] problem (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [LOOKUP] (1997) Multiple prices (1997) Search design (1997) WebCatalog Features (1997) did I miss anything (1997) OT: Typhoon (1998) Search with Special Chars (1997) [showif [math (1999) Just a thought (1998) Another question (1997) Adding Multiple Items to Shopping Cart from a Results page (1997) Search / Results on unrecognized characters (2003)