In this tutorial, you are going to create a simple document 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 Published.
Click Next.
The 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 {{PUBLISH INPUT[[Please enter your name]][[Anonymous]]}}
Now you can save your webpage. On the File menu, select Save As.
Using the Save in drop-down list, select the HTMLFiles directory, under your HotDog directory.
In the File name field, enter demo as the name for your new webpage. Your file will now be publlished as soon as you upload to your server. Alternatively you can publish your files to a directory on your system first, so that you can see what your webpage would look like once you upload it.
For the purposes of this tutorial we will publish to a local directory instead of the Internet. This is a very useful practice, since it allows you to preview your published webpages before you place them on the Internet. To do this, in the Edit menu, select Preferences.
Select Publish on the tree view of the Preferences dialog (you may need to scroll down the tree view).
Tick the Publish To Directory option.
Now select Directories on the tree view of the Preferences dialog.
In the Published Files field, specify a local directory where your files will be sent when publishing. For example you could specify the following location (note that PublishedFiles is a folder you need to create):
C:\Program Files\Sausage\HotDog6\HTMLFiles\PublishedFiles
Click OK to save the changes.
Now go the Format menu and select Publish Document.
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.
Now open the file that has been published to the directory that you specified in Step 17. If you had used the directory suggested in this step then your file would be located at:
C:\Program Files\Sausage\HotDog6\HTMLFiles\PublishedFiles\demo.html
If, say, you had entered the name Peter Rabbit in Step 3. then the text inserted into your document should now look something like:
This webpage has been created by Peter Rabbit