*
*
  :: Installing :: Upgrading :: Moving Installed Version :: User Manual :: Tricks & Tips :: Readme.txt ::


hacked by:
Nearly Null (-NnN-)

Templates
Posted on: March 25, 2000, 1:36 a.m.



The following paragraphs and pages will help you learn and use the Template system for Home Free. The template system allows users to your Home Free who don't know html to easily and quickly create a web site. The template system uses forms to allow the user to create their html page. What is so different about the EZ-Web template system is that you can create multiple templates for your visitors without doing programing besides html. This page breaks down the files involved in the templates and how to create new templates for use on your Home Free.

       The template consists of 2 different text files that are stored in your Home Free data directory. The first, named template_X.dat holds the form data the users are shown to create/edit there web page. The second file, template_X.html is the actually html page that will become the new page for the user, with there form values inserted.

       When a user selects a template to create a new html page, the data from template_X.dat is read in an the form is created with the appropriate defaults and form fields. The user then fills out the fields according to the instructions given, the either presses the "preview" button or the "create/save" button. When the "preview" button is pressed a new window opens with the html file they just created inside it. When the "create/save" button is pressed, template_X.html is used along with the values entered in the form fields to create a html page for the user. As long as the templates are create properly, any html file created by them can be edited with them.

What part of template_X.dat might look like:

Document Title -- <input type="Text" name="TITLE" value="%TITLE%" size="30">

And then in template_X.html the above would enter a vaule in.

<HTML><HEAD><TITLE>%TITLE%</TITLE></HEAD>

Copyright © 1997- 2000 Solution Scripts.    
*