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:

Does anyone have a solution to make carts smaller? (1998) 2.0Beta Command Ref (can't find this instruction) (1997) Max Record length restated as maybe bug (1997) Migrating to NT (1997) find with exceptions (1997) Bill To - Ship To Information display (1997) Error handling for accountNum (1997) Summarizing on two fields (1998) WebCommerce: Folder organization ? (1997) Bug Report, maybe (1997) problems with 2 tags (1997) WebCat2 - many [carts] on one template page? (1997) Options for http uploading of files (1999) [OT] iFrame (body) Q (2004) Re:2nd WebCatalog2 Feature Request (1996) Email template names (1997) Searching in a range... (1998) File Uploads: WebCat/SiteEdit (1998) Fwd: Protect Tag and Groups (1998) Deleting Multiple Database Records based on Checkbox (1998)