Skip to content

Commit 88525f0

Browse files
committed
Add liquid statements workaround
1 parent dce2443 commit 88525f0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/engage/content/email/template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ As you configure the template, click **Merge Tags** and select the profile trait
6666

6767
You can also add merge tags in the heading or body text as you design an email with the [Drag and Drop](/docs/engage/content/email/editor/) or [HTML](/docs/engage/content/email/html-editor/) editors. Engage supports [liquid templating](https://liquidjs.com/tags/if.html){:target="blank"} to create dynamic content in the email design editor.
6868

69+
### Use liquid statements with images
70+
71+
If you're using the [image content module](/docs/engage/content/email/editor/#add-content-modules) in the Drag and Drop Editor, you can't use liquid statements in the **Image URL** field.
72+
{% raw %}
73+
To use liquid statements with an image, Segment recommends using an [**HTML block**](/docs/engage/content/email/editor/#add-content-modules) with the following syntax: <br>
74+
`<img src=“{{profile.traits.imageLink | default: '<insert your default URL here>'}}”`, where `profile.traits.imageLink` is an example profile trait representing personalized image links for each recipient.
75+
76+
{% endraw %}
77+
6978
> info ""
7079
> To learn more about profile traits, visit Segment's [Computed Traits](/docs/engage/audiences/computed-traits) and [SQL Traits](/docs/engage/audiences/sql-traits/) documentation.
7180

0 commit comments

Comments
 (0)