2nd WebCatalog2 Feature Request

This WebDNA talk-list message is from

1996


It keeps the original formatting.
numero = 10135
interpreted = N
texte = OK, so now WebCatalog2 can open as many databases as you like, with any fieldnames you like. How important is backwards-compatibility? We're doing our best to maintain a clean upgrade path, but you will definitely need to change your template files a little bit when you move to WebCatalog2. Even more changes are necessary for the plugin version.The way it works now, you must modify your Catalog.txt file so that the first line contains the fieldnames sku title description ...etcThis also means you must now specify the database name whenever you use a command, such as WebCatalog.acgi$search?db=Catalog.txt&template=xxxNow I could hack in some code that assumes if you don't specify a database, then it should look for a file called Catalog.txt and assume it has the old 27 fixed fields in it. But I don't like this because I'd rather have error-checking so that if you forget to specify a database it can say Sorry, the SEARCH command requires that you specify a database rather than just quietly assuming you _meant_ to use an old-style Catalog.txt file.Personally I don't think it's too hard for webmasters to add that first line of fieldnames, and I'd much rather keep the code clean, fast and small. And I also like the new method of explicitly specifying the database you plan to use, rather than having some hidden assumptions that create tech support nightmares.Oh, well, these are the problems we knew we'd face as we generalized the database code more. Wait til you see how you get the price information into the shopping cart!Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMill San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: 2nd WebCatalog2 Feature Request (herrera@tcimet.net (College Shopping Network) 1996)
  2. Re[3]: 2nd WebCatalog2 Feature Request (John Peacock 1996)
  3. Re: 2nd WebCatalog2 Feature Request (GL 1996)
  4. Re[2]: 2nd WebCatalog2 Feature Request (Grant Hulbert 1996)
  5. Re[2]: 2nd WebCatalog2 Feature Request (John Peacock 1996)
  6. Re:2nd WebCatalog2 Feature Request (Todd Mathews 1996)
  7. Re:2nd WebCatalog2 Feature Request (matt@papersite.com (Matthew Steele) 1996)
  8. Re: 2nd WebCatalog2 Feature Request (matt@papersite.com (Matthew Steele) 1996)
  9. Re:2nd WebCatalog2 Feature Request (Grant Hulbert 1996)
  10. Re:2nd WebCatalog2 Feature Request (Grant Hulbert 1996)
  11. Re:2nd WebCatalog2 Feature Request (Jim Shaughnessy 1996)
  12. Re:2nd WebCatalog2 Feature Request (Jim Shaughnessy 1996)
  13. RE: 2nd WebCatalog2 Feature Request (Jim Shaughnessy 1996)
  14. Re:2nd WebCatalog2 Feature Request (Grant Hulbert 1996)
  15. Re:2nd WebCatalog2 Feature Request (Todd Mathews 1996)
  16. 2nd WebCatalog2 Feature Request (Grant Hulbert 1996)
OK, so now WebCatalog2 can open as many databases as you like, with any fieldnames you like. How important is backwards-compatibility? We're doing our best to maintain a clean upgrade path, but you will definitely need to change your template files a little bit when you move to WebCatalog2. Even more changes are necessary for the plugin version.The way it works now, you must modify your Catalog.txt file so that the first line contains the fieldnames sku title description ...etcThis also means you must now specify the database name whenever you use a command, such as WebCatalog.acgi$search?db=Catalog.txt&template=xxxNow I could hack in some code that assumes if you don't specify a database, then it should look for a file called Catalog.txt and assume it has the old 27 fixed fields in it. But I don't like this because I'd rather have error-checking so that if you forget to specify a database it can say Sorry, the SEARCH command requires that you specify a database rather than just quietly assuming you _meant_ to use an old-style Catalog.txt file.Personally I don't think it's too hard for webmasters to add that first line of fieldnames, and I'd much rather keep the code clean, fast and small. And I also like the new method of explicitly specifying the database you plan to use, rather than having some hidden assumptions that create tech support nightmares.Oh, well, these are the problems we knew we'd face as we generalized the database code more. Wait til you see how you get the price information into the shopping cart!Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMill San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

Server crash (1997) Virtual hosting and webcatNT (1997) can webcat determine an image's pixel dimensions? (2000) WebDNA still will not start on restart (2002) Getting total number of items ordered (1997) Help with database strategy (1998) [WebDNA] Acceleratin Search / Index Performance in a Formum Service (2013) cookie length (1998) Payflow Pro help Mac OS 9 (2002) Moving a record from one dataabse to another. (2000) Pull Down Search (2000) [WebDNA] Clean URLS job - will pay (2010) RE: Answer: WebDelivery downloads alias, not original ? (1997) RE: NewCart+Search with one click ? (1997) Search returns all, not 20 (1997) off topic - dna snipets (1997) [WebDNA] maybe silly suggestion? [founditems] (2015) Stumpted Again (1997) Banner Ads (2000) 5.0 Pricing (2003)