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


BANNER AND TEXT-BASED MESSAGES



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


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