7. Interchange Page Display
Interchange has several methods for displaying pages:
- Display page by name
If a page with [page some_page] or <A HREF="[area some_page]"> is called and that some_page.html exists in the pages directory (PageDir), it will be displayed. - On-the-fly page
If a page with [page 00-0011] or <A HREF="[area 00-0011]"> is called and 00-0011 exists as a product in one of the products databases (ProductFiles), Interchange will use the special page descriptor flypage as a template and build based on that part number. This is partly for convenience; the same thing can be accomplished by calling [page your_template 00-0011] and using the [data session arg] to perform the templating. But there is special logic associated with the PageSelectField configuration attribute to allow pages to be built with varying templates. - Determine page via form action and variables
If a form action, in almost all cases the page to display will be determined by the mv_nextpage form value. Example:
<FORM ACTION="[process]"> <INPUT TYPE=hidden NAME=mv_todo VALUE=return> <SELECT NAME=mv_nextpage> <OPTION VALUE=index>Main page <OPTION VALUE=browse>Product listing <OPTION VALUE="ord/basket">Shopping cart </SELECT> <INPUT TYPE=submit VALUE=Go> </FORM>
-
The mv_nextpage dropdown will determine the page the user goes to.