When putting together salutations and addresses in templates there are several attributes available. These attributes are available for candidates (toEmployee), contacts (toContact) and users (toUser).
The available attributes are:
Salutation
The 'Salutation' in the file determines if a formal or informal salutation is used.
Use the following attributes for a formal/informal salutation:
Remarks
- If no salutation is set in the file, the default from the table item is used.
- If there is no default set in the table item, then the Formal (informal) is used.
Variants (EU, US, ES)
When putting together salutations and addresses, 1 of the following 3 variants is used:
- EU - Europese format: Mr. A. van der Akker
- US - International format: Mr. Michael J. Fox
- ES - Spanish format: Sr. Juan Gomez Antonio
Remarks
- The default variant of a Carerix system is determined by one of the following interface parameters: isInternational(US), isBelgian(EU), isSpanish(ES).
- It is always possible to choose a variant yourself by adding an attribute to one of the codes. For example: formalNameEU or informalNameUS.
- The default language of a Carerix system is determined by the language parameters. The language determines the salutations and addresses (mister / de heer / senor). If no language parameter is set, the language is dutch.
UnknownGenderSalutation
The setting 'UnknownGenderSalutation' determines, if the gender is unknown, what the salutation will be.
EU-variant
Attributes based on salutation
The 'salutation type' is the field that is available at every candidate and contact. The value in the field determines the salutation in the templates.
Fixed fields
ES-variant
Most important differences in comparison to the dutch version:
- Initials and titles: These fields aren't used.
- Suffix: This field doesn't exist in the Spanish version.
- Second last name: This field is added in the Spanish version.
Attributes based on salutation
The 'salutation type' is the field that is available at every candidate and contact. The value in the field determines the salutation in the templates.
Remark
- openingWithPrefix uses 'estimado' or 'estinada' based on the gender.
Fixed fields
US-variant
Attributes bases on salutation
The 'salutation type' is the field that is available at every candidate and contact. The value in the field determines the salutation in the templates.
Fixed fields
Translated salutation
Let's say that you use a Dutch system, and you want to use a English salutation in a template. Use the following CxScript code:
<cx:language value="English">
<cx:write value="$activity.toEmployee.openingEU"/>
</cx:language>
Lets say that you want to use a salutation based on the language that is set to the person. Use the following CxScript code:
<cx:let name="myLang" condition="$activity.toUser.toLanguageNode.dataNodeID=1465" ifTrue="English" ifFalse="Dutch">
<cx:write value="$myLang"/>
...
<cx:write value="$activity.toContact.openingWithPrefixEU"/>,
...
</cx:language>
</cx:let>
Watch out:
The 1465 is a fixed value in your configuration, see the table item "Language" what the ID in your system is for the desired language.
Alternative: Is the whole template in English. Select the system language 'English' in the template file.
Then the cx:language construction doesn't need to be used.
____
Keywords : UD-1734