Changes

Jump to: navigation, search

Advanced Custom Fields

449 bytes removed, 20:37, 13 November 2007
no edit summary
[[Image:Advc.png]]
 
In addition, you will need to add line breaks with the tag '''<br>''' and paragraphs with the tags '''<p>''' and '''</p>'''.
1. Add the following HTML Template:
<html><head></head><body>@salutation@ @firstname@ @lastname@<br>@address@<br>@address2@<br>@city@, @state@<br>@postalcode@<br> Dear @firstname@<br><br>We are pleased to offer you a position with our company<br><br>Salary[[Image: @salary@<br>Car Allowance: @car allowance@<br>Bonus: @bonus@<br>Total Compensation: @total compensation@<br><br>Yours sincerely<br><br>@me.firstname@ @me.lastname@<br>@meAdvc1.title@<br> </body></html>png]]
The Variables are shown in bold.
Note the use of the “me” variable to reference the current [[User|user’s ]] details.
2. '''Save ''' the template.
3. Display an '''Employee ''' record.
4. Click the '''Open ''' button on the '''Letter of Offer ''' field.
The '''Web page view Page View''' is displayed.
* All variables have been added, except the salutation field that is not set in the underlying [[Entity|entity]].* There are no options available for this document as you have yet to enable them.
5. '''Close ''' the window.
==Suppressing Missing Fields==
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.
1. Display the '''Web Page View ''' [[Custom Fields|custom field]].
2. Add this tag before the @salutation@ field.
4,401
edits

Navigation menu