Templates
Templates efficiently replicate content across resources
Templates can be assigned to Messages, Auto Responders, and Pages in OptiPub.
During content creation, the Confirm
step will display the content embedded within the assigned template
. Existing content can be viewed with the template in Previews
or you can Send a Test Email
.
Macros
All macros (System Macros
, Custom Content
and Variables
) that are available for the content type can be added to a template.
{$sys_email.content}
- is a System Macro specific only to templates. Add this macro to the template in the position where the resource content should be placed.
Other notable system macros are:
{$sys_email.subject}
- The message subject line
{$email}
- The message receiver's email address
{$sys_email_unsubscribe}
- A URL unique for every specific email sent with a destination to configure the subscription preferences of the receiver.
System Macros
{$sys_division.[setting]}
macros are defined in publication settings. Edit an existing publication to configure these.
{$sys_publication.[setting]}
macros are defined when creating a publication.
Configure publication settings in Administration > Publications.
Smarty Template Engine
OptiPub Messages
and Auto Responders
can render some Smarty values. OptiPub cannot process custom defined Smarty logic.
OptiPub Landing Pages
and Pages
cannot render Smarty values.
Add a Dynamic Date
A notable smarty value to use in message templates is {$smarty.now|date_format}
. View custom formats in the smarty documentation.
(default) {$smarty.now|date_format}
= Dec 31, 2024
(default) {$smarty.now|date_format:"%b %e, %Y"}
= Dec 31, 2024
(custom format) {$smarty.now|date_format:"%A, %B %e, %Y"}
= Tuesday, December 31, 2024
Template Categories
Create new Template Categories
in Administration > System Settings > Categories > Template Categories
.
Category Types
Template Category Types
determine which content resources can assign the template.
Content Type
- templates are available for Pages
and other website related content.
Message Type
- templates are available for Auto Responders
and Messages
and other email related content.
Message Types
Message Types are for organizational purposes only. Messages can assign templates created as any Message Type Category.
Default Template Categories:
Auto Responder
Article Mailing
Promo Mailing
Renewal Mailing
Linkfest
Free Style
Updated about 2 months ago