Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The e-mail templates are stored in XSLT format and are transformed to an HTML file with XML data at runtime. The original templates, which are located in “C:\Program Files\ITSENSE AG\Application Service\Templates”, should not be changed. All available e-mail templates can be overwritten by creating the corresponding files in the following folder:

...

Code Block
languagediff
[TemplatePart "../Parts/XslTemplateHeader"]
	<xsl:template match="/DictionaryOfString_String">
		[TemplatePart "../Parts/HtmlHeaderBeforeTitle"]EMail verification[TemplatePart "../Parts/HtmlHeaderAfterTitle"]
		<tr>
			<td colspan="5">Please verifiy yourself by entering the following PIN:</td>
		</tr>
		<tr>
			<td colspan="5"> </td>
		</tr>
		<tr>
			<td colspan="5">
				<p><b><xsl:value-of select="Items/Item[Key = 'verification_pin']/Value" /></b></p>
			</td>
		</tr>
		[TemplatePart "../Parts/HtmlFooter"]
	</xsl:template>
</xsl:stylesheet>

The template in detail:

Line 1

Code Block
[TemplatePart "../Parts/XslTemplateHeader"]

References the default template header. This contains the customer's logo and the general design in a standard installation.

Line 3

Code Block
[TemplatePart "../Parts/HtmlHeaderBeforeTitle"]EMail verification[TemplatePart "../Parts/HtmlHeaderAfterTitle"]

References the default template before and after the heading as well as the actual heading in the current language.

Line 12

Code Block
<p><b><xsl:value-of select="Items/Item[Key = 'verification_pin']/Value" /></b></p>

Output of the Verification PIN

Line 15

Code Block
 [TemplatePart "../Parts/HtmlFooter"]

References the default template footer.

Multilingualism

The templates can be built up multilingual. To do this, add the extension of the corresponding language to the corresponding template file. If no language is specified, the file is used as default.

File

Language

EmailVerification.tpl

Standard Template

EmailVerification.EN.tpl

English

EmailVerification.FR.tpl

French

EmailVerification.IT.tpl

Italian

The language used is always determined via the core identity. If no language is defined there or if a language is defined that has not been translated, the default template is used.

...