In this tutorial, you are going to create a simple template that inserts a user's name into the document.
First, open a new document. On the File menu, select New and then click OK.
In your document, between the BODY tags, type: This webpage has been created by
Include a space at the end of the text.
Now you want to insert a publish field. On the Insert menu, select Publish Field. This starts the Add Publish Field Wizard.
Select When A Document Is Created.
Click Next.
The publish field is to be filled in by the user, so select By the User.
Click Next.
In the Message Text window, enter: Please enter your name.
In the Default Value field, enter Anonymous.
Click Finish to insert the field into your document.
Take the time to have a look at the HTML code that has just been inserted into your document. It should look something like:
This webpage has been created by {{CREATE INPUT[[Please enter your name]][[Anonymous]]}}
Now you can save your new template. On the File menu, select Save As.
Using the Save as type drop-down list, select HotDog Template (*.tpl).
Using the Save in drop-down list, select the Template directory, under your HotDog directory.
In the File name field, enter demo as the name for your new template.
Now close your new template document. On the File menu, select Close.
You can now select this template to use whenever you wish to create a new webpage.
On the File menu, select New. This brings up the Open a New Document dialog.
In the Available Templates panel, select the demo template you have created.
Click OK. A dialog will appear to prompt you with your message text: Please enter your name.
In the field, replace Anonymous with your name.
Click OK.
If you had entered the name Peter Rabbit in Step 18. then the text inserted into your document should now look something like:
This webpage has been created by Peter Rabbit