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:

PR: WebCatalog Affiliates Program Announced -- Share the (2000) Not reading code (1997) suggestion (1997) Large Database Options? (1999) Webmerchant & Worldpay (2007) Where is f2? (1997) creative use of webcatalog (1998) Special characters in field names (1998) Multiple cart additions (1997) Word search (1997) test (2002) [UPPERCASE] (1997) Quitting WebMerchant ? (1997) Mail Service Dead (1998) SUBMIT buttons not working.... (2000) RedHat 9 & WebCatalog 4.5 (2004) Summary search -- speed (1997) WebCatalog2 for NT Beta Request (1997) [WebDNA] directory protection questions (2008) Running _every_ page through WebCat-error.html (1997)