Re: Grouping items in results page

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36281
interpreted = N
texte = >Someone has posted code that puts search results into a table: > >[search.........] > > >[founditems] > >[showif [index]\2][/showif] >[/founditems] >
[variable]
>[/search] > > > >Say I have four or five products that I know will get returned in the >search results (apples, oranges, grapes and bananas). I want results >that come back looking like this: > > >Green apple > >Red apple > >Green grape 1, green grape 2, green grape 3, green grape 4, green grape 5. > >Purple grape 1, purple grape 2, purple grape 3, purple grape 4 > >Orange > >Banana 1, banana 2, banana 3 > > > >How do I format the search context so that I can treat grapes and >bananas differently from apples and oranges? Unless you have your database and searches set up in advance, with special fields for sorting like this, you have to perform multiple searches, one for each of the 4 groups of items. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grouping items in results page (Christopher Mackay 2000)
  2. Re: Grouping items in results page (Will Starck 2000)
  3. Re: Grouping items in results page (Will Starck 2000)
  4. Re: Grouping items in results page (Kenneth Grome 2000)
  5. Grouping items in results page (Christopher Mackay 2000)
>Someone has posted code that puts search results into a table: > >[search.........] > > >[founditems] > >[showif [index]\2][/showif] >[/founditems] >
[variable]
>[/search] > > > >Say I have four or five products that I know will get returned in the >search results (apples, oranges, grapes and bananas). I want results >that come back looking like this: > > >Green apple > >Red apple > >Green grape 1, green grape 2, green grape 3, green grape 4, green grape 5. > >Purple grape 1, purple grape 2, purple grape 3, purple grape 4 > >Orange > >Banana 1, banana 2, banana 3 > > > >How do I format the search context so that I can treat grapes and >bananas differently from apples and oranges? Unless you have your database and searches set up in advance, with special fields for sorting like this, you have to perform multiple searches, one for each of the 4 groups of items. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ 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:

Re:no [search] with NT (1997) Need relative path explanation (1997) encrypt (2000) Searching multiple fields (1997) Generating Pages (1999) WC2.0 Memory Requirements (1997) All questions are welcome on this list (1997) THANKS (1997) WebCatalog as another user on mac osx (2001) Can't get appendfile to work (1997) Sorting (1998) Calendar (1997) [date] tag not working on mac 4.0.1 (2000) U&P IIS concept (1998) suffix mapping for NT? (1997) WebCat2: Items xx to xx shown, etc. (1997) Multiple security dbs (1997) Max Include levels (2000) Multiple Newcarts (1996) Menu to select product variations (1997)