[WRITEFILE] to create database spider food?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16812
interpreted = N
texte = Hi. Seeking help regarding [WriteFile]; details follow:I'm creating entry pages for product categories. The idea (to renew a thread from several weeks ago) is to provide spider food about the products available at our online store.However, I am not sure I'm using [WriteFile] correctly, since I need to reload the entry page twice in order to view the results! Here are the steps taken so far:(1) created link from another page that searches the catalog.db for products from the desired category. For example: CATEGORY1 (2) created a template (ex: CATEGORY1.tmpl) for the product category. The template is very similar to the SearchResults.tmpl used in the General Store example, except for the use of [WriteFile]: Category1 Entry Page [writeFile file=CATEGORY1.tmpl&secure=F][Include file=/Globals/store_header.inc&cart=[cart]]

Welcome to the CATEGORY1 entry page.

[foundItems] [Title] [Synopsis] Tell me more... [/foundItems] [Include file=/Globals/StoreFooter.inc&cart=[cart]] [/writeFile] (3) then tried the link out, to discover that I have to reload in order to view the results properly. I assume this has to do with [WriteFile] being used improperly?Any advice...plus tips and tricks on creating spider food entry pages...would be greatly appreciated! I'd love to see examples of what others on the list are doing along these lines...TIA,Dale Stokdyk www.me2u.com Romantic Gifts from Around the World Associated Messages, from the most recent to the oldest:

    
  1. [WRITEFILE] to create database spider food? (Dale Stokdyk 1998)
Hi. Seeking help regarding [writefile]; details follow:I'm creating entry pages for product categories. The idea (to renew a thread from several weeks ago) is to provide spider food about the products available at our online store.However, I am not sure I'm using [writefile] correctly, since I need to reload the entry page twice in order to view the results! Here are the steps taken so far:(1) created link from another page that searches the catalog.db for products from the desired category. For example: [cart]&searchTitle=Rings>CATEGORY1 (2) created a template (ex: CATEGORY1.tmpl) for the product category. The template is very similar to the SearchResults.tmpl used in the General Store example, except for the use of [writefile]: Category1 Entry Page [writeFile file=CATEGORY1.tmpl&secure=F][Include file=/Globals/store_header.inc&cart=[cart]]

Welcome to the CATEGORY1 entry page.

[founditems] [Title] [Synopsis] [url][sku][/url]&cart=[cart]>Tell me more... [/foundItems] [Include file=/Globals/StoreFooter.inc&cart=[cart]] [/writeFile] (3) then tried the link out, to discover that I have to reload in order to view the results properly. I assume this has to do with [writefile] being used improperly?Any advice...plus Tips and Tricks on creating spider food entry pages...would be greatly appreciated! I'd love to see examples of what others on the list are doing along these lines...TIA,Dale Stokdyk www.me2u.com Romantic Gifts from Around the World Dale Stokdyk

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:

French characters in variables (2001) Forms Search Questions (1997) WebCatalog vs. Cold Fusion (1998) Clickable maps and WebCatalog? (1996) Quit revisited (1997) Auto entering Friday's date in a field (2002) Date Calulation (1997) Weird Math and SV (1997) WebCatalog can't find database (1997) Re:Part 2 - [showif] if variable exists (1998) Re[2]: 2nd WebCatalog2 Feature Request (1996) [WebDNA] Searching for multiple value [search .... 1,2,3] (2015) Proposed FormVariables hierarchy (2000) Help formatting search results w/ table (1997) Random search is not random (2002) # of real domains on 1 web server (1997) Frames and WebCat (1997) Discounts (2002) Advice needed. (1998) Fw: Webcat followup question (1999)