Logo
Ask For Help
Sign in
  1. Cordial Knowledge Base
  2. Personalization

Personalization

To personalize message content we developed a template syntax that is based on a custom version of Smarty (a php based template language). Using Smarty, you are able to customize message content unique to each contact by taking advantage of variables, link functions, conditional content, data looping and much more. The sections and articles below will give you explanations, examples and use cases.

Cordial Template Syntax Overview

  • Getting Started With Smarty Syntax

Variables

  • Smarty Variables
  • System Variables
  • Account Variables
  • Contact Variables
  • Assigning Variables
  • External Variables (API Sending)
See all 9 articles

Link Functions

  • Link Functions Overview
  • Optout Link
  • Adding Tags to Links
  • Naming a Tracked Link
  • Link Append Defaults via UI
  • Link Appends via Smarty
See all 10 articles

Conditionals and Loops

  • Conditionals and Loops Overview
  • {if} statements
  • {foreach} statements
  • Randomize Content
  • Calculate Distance Between Postal Codes
  • Sort an Array
See all 12 articles

Reusable HTML Content (Includes)

  • Reusable HTML Content Overview
  • Advanced Reusable HTML Content Usage
  • Advanced Reusable HTML Content Usage Subject

Cordial Utilities

  • Cordial Utilities Overview
  • Cordial Utilities Reference Page
  • Get Supplements (getSupplementRecords method)
  • Get Products (getProducts method)
  • Get Order Data
  • Get Event Data (getEventRecords method)
See all 8 articles

Coupon Codes

  • Coupon Codes and the "reserveOne" Method

Functions and Modifiers

  • Supported Smarty Functions and Modifiers
SOLUTIONS
  • For Marketing Teams
  • For Technologists
  • For Enterprises
PLATFORM
  • Overview
  • Cordial Data Platform
  • Messaging Channels
  • Agile UIs
  • Services
  • Integrations
COMPANY
  • About
  • Careers
  • Support
  • Partners
  • API Documentation

© 2019

  • Privacy Policy
  • Acceptable Use Policy
  • Terms and conditions