Skip to main content

Liquid / HTML Editor

Advancing to our highest editing level, "Liquid / HTML", fully opens Dynasend's capabilities. This page covers the editor, coding, and coding assets.

Editor​


The editor functionality of Dynasend is where the template coding occurs. The screen itself is divided into three horizontal panes (with the middle pane being optionally toggled on or off).

email signature add-in supported email clients

Editor Pane​

The left-hand page is the editor itself. The drop-down at the top allows you to select the file that you will be editing.

Dynasend extends the signature HTML (and TXT) through the use of the Liquid programming language - we recommend these resources:

The three essential files for any program are:

  • HTML
  • Text
  • Styles

The other files are optional, to be used as needed. Our page on configuration options provides an overview of the reply and internal signatures.

email signature add-in supported email clients

Form Pane​

The center-pane displays the user profile form, as you have set it up when configuring your program. The form can be toggled on and off (by default it is off). Displaying the form allows you to preview it, and more importantly at this stage, allows you to enter test data into the various fields so that you can verify that your code is functioning correctly.

Note #1: It's likely that some of the fields will be pre-populated with dummy test data - this is purely for testing and means nothing to your finished project.

Note #2: The form you see here may not be an exact representation of what a user will see. For example, if you have elected to make some fields "hidden", a user would not see them but they will still appear on this version of the (form designed for testing your code).

email signature add-in supported email clients

Preview Pane​

The right-hand pane is the preview pane, which will enable you to preview the email signature in its various configurations.

The essential SAVE button is also located above the right-hand pane.

email signature add-in supported email clients

Related docs:

Coding​

Fixed Variable Naming Conventions​

Dynasend utilizes a number of fixed variable naming conventions, these are built into the platform and must be used (when needed) as shown here.

LOCATION FIELDS

{{ location.address_line_1 }}
{{ location.address_line_2 }}
{{ location.postal_code }}
{{ location.city }}
{{ location.state }}
{{ location.country }}

PHOTO URL'S

{{ photo.public_id }}
{{ uploaded_user_image.public_id }}

OTHER URL'S

{{ signatures.vcf.url }}
{{ location.map_url }}
{{ email }}
<a href="{{ signatures.vcf.url }}"><img src="{{ vcard_qr }}" width="100" />

Widgets (Code Blocks)​

Dynasend has three embeddable widgets - the banner management functionality, the text-based message functionality, and the CSAT / Survery functionality. The code blocks for these widgets are presented below.

Attention

We strongly recommend that you embed all three of these into your code. They will do nothing unless and until a designated "manager" decides to utilize the widgets. If the code block has not been embedded, then the widget will not work which may lead to frustration / confusion at some point in the future.

{%- if signature_message -%}

<tr>
<td style="border-style: hidden; padding-top: 8px; padding-bottom: 6px; white-space: nowrap;" colspan="3">
<div class="text-message">
{%- include 'signature_message' -%}
</div>
</td>
</tr>
{%- endif -%}

{%- if banner -%}

<tr>
<td style="border-style: hidden; padding-top: 8px; padding-bottom: 0px; white-space: nowrap;" colspan="3">
{%- include 'banner' -%}
</td>
</tr>
{%- endif -%}

{%- if csat -%}

<tr>
<td style="border-style: hidden; padding-top: 8px; padding-bottom: 0px; white-space: nowrap;" colspan="3">
{%- include 'csat' -%}
</td>
</tr>
{%- endif -%}

Metadata Syntax​

Metadata can be used in different ways in Dynasend, the two most frequent being program-specific and location-specific. The syntax for these is illustrated below via a few example.

METADATA URL'S (Program level examples)

{{ program.company_website_url }}
{{ program.company_name }}

METADATA URL'S (Location level examples)

{{ location.metadata.time_zone }}
{{ location.metadata.store_hours }}

Cloudinary​

Cloudinary Documentation

SAMPLE CODE

Unknown Graphic Size, Optimized for HD: When using the field type "UPLOAD" -

{{ uploaded_user_image.public_id }}

the size of the image that the user uploads will often be unknown. Following is code designed to display the user's uploaded graphic at half size, hence optimizing it for HD / Retina Display.

<img src="{{ uploaded_user_image.public_id | cloudinary_v2: width: uploaded_user_image.width, height: uploaded_user_image.height }}" width="{{ uploaded_user_image.width | divided_by: 2 }}" />

Following is code to make an image round and Optimize it for HD - here it stores the image as 228px by 228px and displays it at 114px by 114px:

<img src="{{ photo.public_id | cloudinary: 228, 228, 'round' }}" nosend="1" border="0" width="114" height="114" alt="Photo" title="Photo" />

Liquid​

We use Liquid templating language for dynamic content in email signatures.

For filter references, see:

Related docs:

Coding Assets (Reference)​

Request Dynasend Developer Credentials

Social Media​

how to select icon size

If you're following our "Quick Start" process, the placement of the code block will be indicated in the HTML code with the appearance of these bounding statements:

<!-- BEGIN SOCIAL MEDIA ICONS AND LINKS -->
----- the code goes between these -----
<!-- END SOCIAL MEDIA ICONS AND LINKS -->

Smaller Icon Sets​

click the icon set graphic to expose the code block

Small square social media icons in colorSmall square social media icons in blackSmall square social media icons in graySmall square social media icons in light gray

Small round social media icons in colorSmall round social media icons in blackSmall round social media icons in graySmall round social media icons in light gray


Larger Icon Sets​

click the icon set graphic to expose the code block

Large square social media icons in colorLarge square social media icons in blackLarge square social media icons in grayLarge square social media icons in light gray

Large round social media icons in colorLarge round social media icons in blackLarge round social media icons in grayLarge round social media icons in light gray

Address / Location​

If you're following our "Quick Start" process, the placement of the code block will be indicated in the HTML code with the appearance of these bounding statements:

<!--BEGIN LOCATION ROW-->
----- the code goes between these -----
<!--END LOCATION ROW-->

Click the thumbnail to expose the code block:

Address code block one line layout Address code block two line layout Address code block three line layout

Telephone​

Number Formatting: Canada and USA​

Click a thumbnail to expose the code:

Phone formatting default Phone formatting with dashes Phone formatting with dots Phone formatting with spaces

Layouts​

Click a thumbnail to expose the code:

Phone inline layout    (Default for Quick Start templates.)

Phone stacked layout Phone columns layout