Parsed HTML and .inc files -- How agora.cgi displays things
-----------------------------------------------------------
Steve Kneizys
(Copyright 2000)
20-FEB-2000
06-JAN-2001 updated
13-JUL-2001 updated
Having agora.cgi display items for you: productPage.inc files:
---------------------------------------------------------------
You can run agorascript from inside productPage.inc files, as well header
and footer files. See the agorascript.txt file in the DOCS directory for
more information.
The productPage.inc files determine how agora.cgi presents the data when
it does a database lookup. There are a couple different productPage.inc
files that are shipped with agora.cgi that you may use as a starting point
for your store, should you deecide to do a databaase-driven store.
On the sample store, if you click on the category PERL, it browses the
items in the category PERL. It uses the default productPage.inc file
found in the html/html-templates directory, displaying the possible
options, qty field, add-to-cart button, picture, name, price, and
description. However, if you do a search, it displays things in a much
simpler fashion, giving the user the option to display each item or its
category in a fashion almost identical to clicking on a category link. It
is able to use a different productPage.inc file by including the hidden
field "ppinc" in the form used for the search.
Here is how "On-The-Fly Page Generation" works. If there is a field named
"ppinc", then the value is used to search for the proper productPage.inc
file. If the syntax used is: