Kentico CMS 6.0 Context Help

Template edit

Template edit

Previous topic Next topic Mail us feedback on this topic!  

Template edit

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

In this section you can modify the given newsletter template. You can edit the Display and Code name fields as well as the layout of the template.

 

A newsletter template layout consists of:

 

Subject

Can be used to set the subject of the e-mails that use this template. This field is not available for Newsletter issue templates, since the e-mail subject is entered locally when writing individual issues.

Header (HTML)

The leading HTML code including the <html> element.

Body

Defines the main layout of the e-mails that use this template. Here you can enter static text, use the WYSIWYG editor and insert macros or newsletter fields.

 

Newsletter issue templates may also contain editable regions where editors can enter the content of individual newsletter issues. These can be inserted using the Insert editable region section. Regions are inserted as macro expressions in format: $$regionName:width:height$$

Footer (HTML)

the closing HTML code.

Attachments

This option allows you to attach a file to the newsletter e-mail, such as event agenda, white papers, etc. When a file is uploaded in the field, two icons are displayed next to it:

 

Edit (Edit) - if the file is an image, clicking the icon opens it in the built-in image editor. If the file is not an image, the metadata editor is opened after clicking the icon.

Delete (Delete) - removes the file from the field.

 

The following newsletter fields may be inserted anywhere in the body of the template:

 

{%ActivationLink%} - only available for Double opt-in templates. It is resolved into a link to the subscription approval page, as defined by the Approval page URL property of the given newsletter.

{%Email%} - resolves into the e-mail address of the e-mail recipient.

{%FirstName%} - resolves into the first name of the e-mail recipient.

{%LastName%} - resolves into the last name of the e-mail recipient.

{%UnsubscribeLink%} - resolves into a link to the unsubscription page, as defined by the Unsubscription page URL property of the given newsletter.

 

Additionally, other types of macro expressions as seen in Developer's Guide -> Development - Macro expressions can be entered into templates.

 

More resources can be found in:

 

Developer's Guide -> Modules -> Newsletters -> Overview

Developer's Guide -> Modules -> Newsletters -> Newsletter templates