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:

Problems reading files created by WC (1997) Dividers (2003) WebCat2b13 Command Reference Doc error (1997) SiteGaurd file Cache vs webcatalog cache (1997) OT: SEO (2007) [Listfiles] vs Netfinder (1997) Web*SSL and WebCatalog (1997) multiple price line in formula.db (2004) Mondo amounts of Mail [long] (1999) RE: Missing contexts on NT (1997) [date] for today's date, while inside old order file (1998) Number of Line Items (1998) [WebDNA] My SQL will not Connect (2020) New WebDNA Solutions ... (1997) ODBC-Interface (2000) ShowIf, If, XML Syntax.... (2004) Incompatibility with WebCat 3 templates ... (2000) RequiredFields template (1997) Upgrading old WebCat Database Files (1997) Page Counters? (1997)