Re: multiple search commands

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14686
interpreted = N
texte = >At 01:43 PM 11/13/97, you wrote: >>>So, basically, I would need to write that search code into a text file and >>>use the [include] tag? >> >>If I follow you, yes. [Include] is generally used to clean up HTML and to >re-use common HTML or WebDNA on many pages...so it's not necessary but it's >a nice addition. In general, you can stick as much WebDNA on a page as you >like: > >I guess my confusion was from the tearoom tutorial, It basically covered >all search commands coming from the user's imput (i.e. clicking on a url) >What I'm trying to accomplish is making the page as dynamic and ultimately >database dependent on most functions. I would hope this would make >maintaining the site easier. > >Like I mentioned before this is a clothing site, which will have multiple >categorys of clothing, and to display those categories like the tearoom >does, but I also want on the same page to display products immediately from >one of those categories and randomly display 3 or 4 thumbnail images >specific to that category. And I want this to happen all at once on one >template. Gesh..what have I gotten my self into...=) >Don't worry, Ray, we are here to help you! :)Everything you want can be done with WebCat. Some things are easier than others, an the more you use WebCat, the easier it gets ... and the happier you will be that you bought it!For your thumbnail images, you should:1- Create a folder named thumbnails. 2- Create a thumbnails.db database with the following two fields:imageName categoriesPut the thumbnails folder and the thumbnails.db file in the tearoom folder.Next, create a record in the thumbnails.db database for each image you're going to put into the thumbnails folder. Enter the image name into the imageName field, and enter the names of ALL the categories that apply to that image into the categories field.Next, put this WebDNA on your results page where you want to display the three random images of the items in the category your visitors are searching in:[search thumbnails.db&wacategoriesdata=[searchTitle]&racategoriessort=1&max=3] [founditems]   [/founditems] [/search]Next, put some thumbnail image files into the thumbnails folder you created earlier, and make sure they have exactly the same names as the names you typed into the imageName field of the thumbnails.db file.When you're done, this will do a search -- on the results page -- and displays three randomly-selected images from the thumbnails folder which have the same category as the one selected by your visitor. Just make sure the categories selectable by your visitors have the same names as the categories you type into the thumbnails.db file ... :) Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. Associated Messages, from the most recent to the oldest:

    
  1. Re: multiple search commands (Kenneth Grome 1997)
  2. Re: multiple search commands (Christer Olsson 1997)
  3. Re: multiple search commands (Raymond Hatch 1997)
  4. Re: multiple search commands (Paul Uttermohlen 1997)
  5. Re: multiple search commands (Kenneth Grome 1997)
  6. Re: multiple search commands (Raymond Hatch 1997)
  7. Re: multiple search commands (Kenneth Grome 1997)
  8. Re: multiple search commands (Raymond Hatch 1997)
  9. Re: multiple search commands (Grant Hulbert 1997)
  10. Re: multiple search commands (Kenneth Grome 1997)
  11. Re: multiple search commands (Raymond Hatch 1997)
  12. Re: multiple search commands (Grant Hulbert 1997)
  13. Re: multiple search commands (Kenneth Grome 1997)
  14. multiple search commands (Raymond Hatch 1997)
>At 01:43 PM 11/13/97, you wrote: >>>So, basically, I would need to write that search code into a text file and >>>use the [include] tag? >> >>If I follow you, yes. [include] is generally used to clean up HTML and to >re-use common HTML or WebDNA on many pages...so it's not necessary but it's >a nice addition. In general, you can stick as much WebDNA on a page as you >like: > >I guess my confusion was from the tearoom tutorial, It basically covered >all search commands coming from the user's imput (i.e. clicking on a url) >What I'm trying to accomplish is making the page as dynamic and ultimately >database dependent on most functions. I would hope this would make >maintaining the site easier. > >Like I mentioned before this is a clothing site, which will have multiple >categorys of clothing, and to display those categories like the tearoom >does, but I also want on the same page to display products immediately from >one of those categories and randomly display 3 or 4 thumbnail images >specific to that category. And I want this to happen all at once on one >template. Gesh..what have I gotten my self into...=) >Don't worry, Ray, we are here to help you! :)Everything you want can be done with WebCat. Some things are easier than others, an the more you use WebCat, the easier it gets ... and the happier you will be that you bought it!For your thumbnail images, you should:1- Create a folder named thumbnails. 2- Create a thumbnails.db database with the following two fields:imageName categoriesPut the thumbnails folder and the thumbnails.db file in the tearoom folder.Next, create a record in the thumbnails.db database for each image you're going to put into the thumbnails folder. Enter the image name into the imageName field, and enter the names of ALL the categories that apply to that image into the categories field.Next, put this WebDNA on your results page where you want to display the three random images of the items in the category your visitors are searching in:[search thumbnails.db&wacategoriesdata=[searchTitle]&racategoriessort=1&max=3] [founditems]   [/founditems] [/search]Next, put some thumbnail image files into the thumbnails folder you created earlier, and make sure they have exactly the same names as the names you typed into the imageName field of the thumbnails.db file.When you're done, this will do a search -- on the results page -- and displays three randomly-selected images from the thumbnails folder which have the same category as the one selected by your visitor. Just make sure the categories selectable by your visitors have the same names as the categories you type into the thumbnails.db file ... :) Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. 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:

Buying sans cart (1997) Shipping charges depending on tax rate? (1997) Installation webCatalog (French speakers please help) (1998) Image maps/Webcat (1997) Running _every_ page through WebCat ? (1997) reservation program (2000) wrong input values? (1997) Re:2nd WebCatalog2 Feature Request (1996) Order not created error (1997) Calculating Total QTY (1998) WebCat2b15MacPlugin - [protect] (1997) ExpireDate Zero or Greater than Today (2006) emailer (1997) Document Contains No Data! (1997) email bounce check (2002) taxRate is fine but taxTotal isn't (1997) [replace] anomaly?? (2000) [WebDNA] Feature requests - date format (2009) Banner DNA (1997) Practice runs ? (1997)