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:

Mixed databases (1998) WebCat2: Items xx to xx shown, etc. (1997) File Upload, Browser Timeout (2003) WebCatalog (1998) suggestion (1997) [SMSI] Sitebuilder UPS integration (2005) How to get shownext to just shownext once (1997) Execute Applescript (1997) Bug or syntax error on my part? (1997) webcat- multiple selection in input field (1997) New Plug-in and Type 11 errors (1997) Not really WebCat (1997) [format 40s]text[/format] doesn't work (1997) [WebDNA] multi [sendmail] inside [search] (2012) WebCatalog can't find database (1997) [OT] Trying to steal databases on our server (2003) Restart of DBserver (1997) I can't set the variable (2005) Almost a there but..bye bye NetCloak (1997) Duplicate Carts (2000)