Developer Mode Banner

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 }}



Widgets (Code Blocks)

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

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 widget(s). 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

Liquid Documentation
Liquid Filters
More on Liquid Filters