Changes

Web Page View Field

2,775 bytes added, 14:12, 20 September 2007
no edit summary
==Sample Template with HTML Tags, Static Text and Variables==
 
[[Image:Wpv3.png]]
 
* The Variables are shown in bold.
* This example uses the '''<br>''' field for a line break but no other '''HTML''' tags.
* Note the use of the “me” variable to reference the current [[User|user’s]] details.
 
==Tips==
 
<u>'''Getting one document right and then duplicating that document'''</u>
 
The simplest way to create a lot of different document [[Template|templates]] fast is to create a single template, get it right in every respect and then create new documents from that [[Template|template]]. Adding in the '''static text''' and '''variables''' that you need. The following set of tips are useful in getting the document right.
 
<u>'''Using a Editor'''</u>
 
If you want to create a more elaborate document then you should use an HTML editor to prepare the document, insert the variable names and then copy and paste the HTML code into the HTML template field.
 
<u>'''Controlling Margins and Heading/Footer when Printing'''</u>
 
If you don’t set any margins when printing a web page document, then the margins in your [[Browser|browser]] will define the margins used to print the document. Generally this will lead to unsatisfactory results.
 
You should always control the margins both within the '''Web Page View''' [[Template|template]] and within the [[Browser|browser]] to get the most accurate printed version.
* Set the [[User|user’s]] browser margins to the minimum value, usually 0 for all margins (top, bottom, left and right).
* Remove the default header and footer from the [[Browser|browser]].
* In Internet Explorer, FireFox (Mozilla) and Safari these settings are controlled through the '''File''', '''Page Setup''' [[Menu|menu]].
If you set the margins in the '''Web Page View''' and don’t reduce the [[Browser|browser’s]] margin these values will be added together and the document will be printed at a reduced font size.
 
The code for setting the Web Page view is shown in a later section.
 
<u>'''Controlling Margins and Heading/Footer when converting to PDF'''</u>
 
When saving the document as a PDF (if you enable this option for the Web Page View field) only the margins that you have added to the document will be used.
 
If you don’t set the margins within the document then the built-in margins in the PDF writer (the program that created the PDF version of the document) will be used.
 
These margins are: Top margin: '''0.375”''' Bottom margin: '''0.375”''' Left margin: '''0.625”''' Right margin: '''0.6865”'''.
 
==Setting the Margins in the Web Page View field==
 
The following code is used to control the margins in the document. There are two methods of setting the document margins – you can set margins within the body tab of the HTML OR define styles in the head portion of the HTML.
4,401
edits