ShowPage Command ShowPage
Note: This command will be supported through version 4.0. It will be eliminated in version 5.0.
Displays an HTML text file after substituting [xxx] tags for their real values.

To display an HTML file, send WebDNA a ShowPage command with the name of the template file you want to display. Whenever WebDNA receives a ShowPage command, it immediately opens the specified file, looks for and interprets any [xxx] tags, and displays the results to the visiting web browser.

If you have defined an ACTION telling your web server to send all files of a certain extension (.tpl, .HTML) to WebDNA, then simply linking to a URL with that file extension automatically informs WebDNA to perform a ShowPage on that template.

Example (normally you would link to a URL or form containing the following information):

http://yourserver.com/xx.tpl?command=ShowPage

Here are some other ways to send the same command:
HTML Source Description
<a href="xx.tpl">
Hyperlink to WebDNA (notice that when suffix-mapping for .tpl files is set to WebDNA's plugin, WebDNA assumes all .tpl files should be displayed with the ShowPage command). You can set suffix-mapping for .html, and then all files will be sent through WebDNA's interpreter.
<form method="POST" action="xx.tpl">
</form>
Form-based command
(notice the template is part of the action, and ShowPage is automatic)

Security Note: Files inside your cgi-bin (or Scripts) directory cannot be displayed from a remote browser unless you explicitly create an extension mapping telling WebDNA to process them. This prevents outsiders from downloading order files or shopping cart files that contain sensitive information.

Security Note: Files whose type is 'WWWO' (where the O is the Macintosh character option-Z) will not be displayed. These files are considered to contain sensitive information that should never be shown to an outside user. WebDNA automatically creates files with this type in order to prevent hackers from downloading your sensitive data.

User Contributed Notes
ShowPageCommand  

Copyright © 2008 WebDNA Software Corporation, Inc.