[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 threadfrom several weeks ago) is to provide spider food about the productsavailable at our online store.However, I am not sure I'm using [WriteFile] correctly, since I need to reloadthe 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 productsfrom the desired category. For example:
CATEGORY1(2) created a template (ex: CATEGORY1.tmpl) for the product category. Thetemplate is very similar to the SearchResults.tmpl used in the General Storeexample, 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]
Tellme more... [/foundItems] [Include file=/Globals/StoreFooter.inc&cart=[cart]] [/writeFile]