Changes

Jump to: navigation, search

Web Page View Field

5,727 bytes added, 14:51, 20 September 2007
no edit summary
These margins are: Top margin: '''0.375”''' Bottom margin: '''0.375”''' Left margin: '''0.625”''' Right margin: '''0.6865”'''.
==<u>'''Setting the Margins in the Web Page View field=='''</u>
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.
 
[[Image:Wpv4.png]]
 
All measurements for these types of settings are using pixels.
 
Pixels should not be confused with points. A pixel represents a single dot on a monitor; a point is a unit of measure equal to 1/72 of an inch. The following link provides a comparison between points and pixels:
 
'''http://www.sibagraphics.com/font.php'''
 
<u>'''Setting Default Font in the Web Page View field'''</u>
 
If you don’t set the font and font size within the '''Web Page View''' field, then the font used will be determined by the [[User|user’s]] [[Browser|browser]] settings.
 
You can check this setting in Internet Explorer through the '''Tools''', '''Internet Options''' [[Menu|menu]] and '''Appearance Fonts''' button and in FireFox (Mozilla) though the '''Tools''', '''Options''' [[Menu|menu]], '''Content''' icon, '''Fonts''' and '''Colors''' settings.
 
Font formatting can be explicitly set for specific sections of the document or for the entire document using the following code:
 
[[Image:Wpv5.png]]
 
<u>'''Setting Default Paragraph Margins in the Web Page View field'''</u>
 
This tip is very important if you are enabling editing within the completed '''Web Page View''' document.
 
HTML supports a Line tag - < br > and a Paragraph tag set < p > </ p >.
* When you hit the '''Enter''' key a new paragraph is generated using the [[SmartSimple]] HTML Editor to edit the Web Page Document.
* When you use the '''SHIFT + Enter''' key combination a new line is generated.
Paragraphs are set to have extra line spacing called paragraph margins and when you press the '''Enter''' key the lines can be spaced too far apart because they are really paragraphs.
 
You can solve his issue by using '''SHIFT + Enter''' but if your [[User|users]] find this too difficult to remember then you can set the paragraph margin within the '''Web Page View''' document with the following code:
 
[[Image:Wpv6.png]]
 
<u>'''Creating a Landscape Document'''</u>
 
If you need to create a document in landscape layout you will need to add the following special tag to the document template:
 
'''<pd4ml:page.break pageFormat="rotate">'''
 
You can position this tag at any location within the [[Template|template]] to change the orientation so the document could begin in portrait layout and then switch to landscape.
 
This tag is specific to the [[SmartSimple]] PDF writer and can only be used when you provide the '''Save As PDF''' option to the document.
 
For more details of the SmartSimple PDF writer you can visit the following link: '''http://pd4ml.com/support.htm'''
 
<u>'''Adding a Logo or Image to the Web page View Field'''</u>
 
If you wish to add an image to a document such as your company logo then the easiest method is to add a [[Custom Field|custom field]] to your company setting and then reference this field in the '''HTML Template'''. For example, a [[Custom Field|custom field]] named Logo as Display Only - Image type field. You can then reference this image as '''@branch.logo@''' in the HTML template.
 
==Displaying a Web Page View Field==
 
The Web Page View field is displayed as a button.
 
[[Image:Wpv7.png]]
When you click the button the document is completed and displayed.
 
[[Image:Wpv8.png]]
* All variables are added, except the salutation field because it is not set in the underlying [[Entity|entity]].
* There are no options available for this document – these must be enabled.
 
<u>'''Suppressing Missing Fields'''</u>
 
A special tag is used to suppress any fields that are missing from the underlying [[Entity|entity]] - '''<!--hideifnotfound-->'''.
 
Placing this tag in front of any field that may not be present will suppress the display of the variable name.
 
==Document Options==
 
You control which options are available to the [[User|user]] of each '''Web Page View''' field.
 
Each of the selected options will add a button to the top of the Web Page View field.
 
The following example shows how the field will look with all options enabled:
 
[[Image:Wpv9.png]]
* '''Show Menu''' – check box that defines if a [[Menu|menu]] should be shown in the document window.
 
<u>'''General Options'''</u>
 
* '''Allow Printing''' – enables the [[User|user]] to print the resultant document.
* '''Allow Editing''' – enables the [[User|user]] to edit the document with the HTML Editor
* '''Allow New Window''' – displays the document in a new window so the [[Browser|browser’s]] print function can be used.
* '''Is XML''' – indicates that the document is prepared as an '''XML''' output.
 
<u>'''PDF Options'''</u>
 
* '''Enable Password Protection''' – enables the [[User|user]] to [[Password|password]] protect the document (generally used when the document is going to be emailed).
* '''Send as Email''' – enables the [[User|user]] to send the PDF as an attachment to an email message.
* '''Save to Multiple File Field''' – enables the [[User|user]] to save the document as a PDF into any multiple file type fields in the related [[Entity|entity]].
* '''Save to Local Disk''' – enables the [[User|user]] to save a local copy of the PDF document.
 
<u>'''HTML Options'''</u>
 
* '''Send as Email''' – enables the [[User|user]] to send the document as the body of an email message.
* '''Save to Multiple File Field''' – enables the [[User|user]] to save the document as an HTML document into any multiple file type fields in the related [[Entity|entity].
* '''Save to Local Disk''' – enables the [[User|user]] to save a local copy of the HTML document.
 
<u>'''Don’t Save as PDF in Edit Mode'''</u>
 
Be sure to save the document and switch to '''Preview''' mode before you save the modified document in a PDF format.
 
[[Category:System Management]][[Category:Custom Fields]]
4,401
edits

Navigation menu