Re: founditem align

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17188
interpreted = N
texte = Hi Bill,Here's another way to create your results: [search db=123.db&nerecordiddatarq=find_all&recordidpsort=1&max=20] [founditems] [showif [index]\4][/showif] [/founditems] [/search]
[field1]
The advantages to this technique are:1- It only has to perform *one* search instead of 4 separate searches. 2- It creates a single table instead of 4 separate tables. 3- You can use shownext to display the next table of matching items. 4- You can use relative widths in your table columns, because everything is in a single table.To limit the number of rows displayed, just change the max parameter in the search. For two rows use max=8; for 5 rows use max=20, and for unlimited rows just leave the max parameter out. I left it set to 20 here to be compatible with your example ... >The following code will make a table with 5 rows, 4 columns. This code is >using a database with a RECORDID field and a field called FIELD1. RECORDID >contains a unique number for each record and FIELD1 could be your image names. > > > > > > > > > > >[loop start=1&end=20&advance=4] > > > >[SEARCH >db=123.db&neRECORDIDdatarq=find_all&RECORDIDPsort=1&max=4&startat=[index]] > >[FOUNDITEMS] > > > > > >[/FOUNDITEMS] > >[/SEARCH] > > > >[/loop] > >
 
> >[FIELD1] > >
> > > > > >shane@ims1.com wrote: > >> Is there anyway to align [founditems] hortizontally instead of vertically. >> I am thinking about a site that would display art and would be searchable. >> The results would be thumnails of the full size works and I am trying to >> figure out if I could display them in a grid (say 3 x 3). Any Ideas >> >> Shane P. McNelly - web person mailto:shane@ims1.com http://www.ims1.com >> http://www.columbusrealestate.com http://www.alllights.com >> kids - kids - kids http://www.interactiveink.com >> more kid stuff for PBS http://www.pbs.org/kids Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: founditem align (Kenneth Grome 1998)
  2. Re: founditem align (Kenneth Grome 1998)
  3. Re: founditem align (webmaster@textileweb.net (Bill Norman) 1998)
  4. founditem align (shane@ims1.com 1998)
Hi Bill,Here's another way to create your results: [search db=123.db&nerecordiddatarq=find_all&recordidpsort=1&max=20] [founditems] [showif [index]\4][/showif] [/founditems] [/search]
[field1]
The advantages to this technique are:1- It only has to perform *one* search instead of 4 separate searches. 2- It creates a single table instead of 4 separate tables. 3- You can use shownext to display the next table of matching items. 4- You can use relative widths in your table columns, because everything is in a single table.To limit the number of rows displayed, just change the max parameter in the search. For two rows use max=8; for 5 rows use max=20, and for unlimited rows just leave the max parameter out. I left it set to 20 here to be compatible with your example ... >The following code will make a table with 5 rows, 4 columns. This code is >using a database with a RECORDID field and a field called FIELD1. RECORDID >contains a unique number for each record and FIELD1 could be your image names. > > > > > > > > > > >[loop start=1&end=20&advance=4] > > > >[SEARCH >db=123.db&neRECORDIDdatarq=find_all&RECORDIDPsort=1&max=4&startat=[index]] > >[founditems] > > > > > >[/FOUNDITEMS] > >[/SEARCH] > > > >[/loop] > >
 
> >[FIELD1] > >
> > > > > >shane@ims1.com wrote: > >> Is there anyway to align [founditems] hortizontally instead of vertically. >> I am thinking about a site that would display art and would be searchable. >> The results would be thumnails of the full size works and I am trying to >> figure out if I could display them in a grid (say 3 x 3). Any Ideas >> >> Shane P. McNelly - web person mailto:shane@ims1.com http://www.ims1.com >> http://www.columbusrealestate.com http://www.alllights.com >> kids - kids - kids http://www.interactiveink.com >> more kid stuff for PBS http://www.pbs.org/kids Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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 Developer Resource Center (2002) Apache suffix mapping for .tpl (2000) Filemaker & WebCat (2001) WebCat2: multiple currency support (1997) For those of you not on the WebCatalog Beta... (1997) FREE WEBCAT! (was: Tech support) (2000) Country & Ship-to address & other fields ? (1997) Passing a search through a form (2003) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998) Site Check (2006) WebCatalog2 for NT Beta Request (1997) The IBC root beer has arrived! (1997) WebCat/CyberStudio Compatibility (1998) RE: type 2 errors with ssl server (1997) Running _every_ page through WebCat-error.html (1997) Multiple download orders of the same product? (1997) Copy, Move, Create Folders (1998) Round up prices (2000) acrobat -> wc (1998) WebCatalog 2.0 & WebDNA docs in HTML ... (1997)