Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel1
typeflat

Introduction

This article describes how to customize the CoreOne Suite email templates and translate them into other languages.

...

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:

Zeile 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.

Zeile 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.

Zeile Line 12

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

Output of the Verification PIN

Zeile Line 15

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

References the default template footer.

...

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.
Verwandte Artikel

Useful Functions

Formatting dates and times

Get the current date in the format 30.01.2021:

Code Block
<xsl:value-of select="format-date(current-date(), '[D01].[M01].[Y0001]')"/>

Get the current time in the format 08:15:

Code Block
<xsl:value-of select="format-time(current-time(), '[H01]:[m01]')"/>

How-To articles

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "how-to" , "templates" ) and type = "page" and space = "IKB"

...