WordToWeb User's Guide

   
Home
Products
Downloads
Ordering Information

 
Tech Search

Select a category:

Search For:
 
Powered by OneSeek/Developer

(c) Solutionsoft 2002
All Rights Reserved

NOTE
This example demonstrates how you can use a "master page" to generate an HTML publication with virtually any layout and formatting.

The master page for this example is located here.

corner.gif (872 bytes)    
 

Home | TOC | Index | << | >>

Using a Master Page

Master pages allow you to create publications which have very sophisticated formatting. The "master page" is an HTML page which defines all the elements that remain consistent on every page of the publication. The master page can contain advanced table formatting, graphics, style sheet definitions, and other HTML elements. Master pages are especially useful if you want to make your publication conform to the design for your website.

You can create a master page using any HTML editor. Simply design the page, and then place the text "[w2w]" (without the quotes) in the place where you want WordToWeb to insert the body of the page.

Using a master page is very similar to printing mailing labels from a database. The format and layout of the page is defined by the master page (analogous to the label design), while the body text and title of each page is inserted by WordToWeb (analogous to the address information from the database).

The best way to get a feel for how master pages work is to try WordToWeb's master page example. This example will be listed in the Open/Create WordToWeb Project dialog box when you start WordToWeb. The master page for this example is located in the project directory and is called "masterpage.htm". Try viewing this page in your browser to see how it is formatted.

To use a master page

In the HTML Page Layout dialog box, select your master page HTML file using the browse button at the bottom of the dialog box.

Notes

  • You can use any HTML Editor to create your master page. If you want to make your publication conform to an existing web page design, then open an existing page in your editor and replace the content on the page with the [w2w] field.
  • The master page must contain a single instance of the text: [w2w]. This tells WordToWeb where to insert the content it generates.
  • The master page must contain a title (using <TITLE> ... </TITLE> tags). The title will be replaced during the conversion process, but must be present in the master page for things to work correctly.

When you choose to use a master page, WordToWeb handles some things differently that it normally would:

  • Only the content within the <BODY> section and the <TITLE> section are inserted into each page by WordToWeb. If you have specified settings such as background color/graphic or information to be inserted in the <HEAD> section, etc., this will be ignored. All these elements will come instead from the master page.
  • If you choose to also run a post-conversion script or program, the program will be executed before the body is inserted into the master page.
  • If you use a master page and also specify that the table of contents and index should be placed in a frame, then the master page formatting will not be applied to the TOC and index pages. However, if you do not use a frame, then the TOC and index will be formatted according to the master page.

See Also:

Wizard Panel 3

Home | TOC | Index | << | >>