7.2. Special Pages
A number of HTML pages are special for Interchange operation. Typically, they are used to transmit error messages, status of search or order operations and other out of boundary conditions.
Note: The distributed demo does not use all of the default values.
The names of these pages can be set with the SpecialPage directive. The standard pages and their default locations:
The page displayed by Interchange when an order has been canceled by the user.
The main catalog page presented by Interchange when another page is not specified.
If the sendmail program could not be invoked to email the completed order, the failed.html page is displayed.
If the catalog page for an item was not found when its [item-link] is clicked, this page is used as a template to build an on-the-fly page. See On-the-fly Catalog Pages.
Displayed if an unexpected response was received from the browser, such as not getting expected fields from submitting a form. This would probably happen from typos in the html pages, but could be a browser bug.
This page is displayed if the URL from the browser specifies a page that does not have a matching .html file in the pages directory. This can happen if the customer saved a bookmark to a page that was later removed from the database, for example, or if there is a defect in the code.
Essentially this is the same as a 404 error in HTTP. To deliberately display a 404 error, just put this in special_pages/missing.html:
[tag op=header]Status: 404 missing[/tag]
This page is displayed if the URL from the browser specifies the ordering of a product code which is not in the products file.
This page is displayed when the customer orders an item. It can contain any or all of the customer-entered values, but is commonly used as a status display (or "shopping basket").
Contains the default output page for the search engine results. Also required is an input page, which can be the same as search.html or an additional page. By convention Interchange defines this as the page results.
SpecialPage search results
violation (special pages/violation.html)
Displayed if a security violation is noted, such as an attempt to access a page denied by an access_gate. See UserDB.