Common Zephyr Examples

Overview

Based on frequent client requests and support tickets, we'll continue to add examples to this page to help you best utilize Zephyr's power. Don't see something here? Let us know!

Email Examples

For use in email templates/campaign emails.

Conditional Based on List Subscription Status

You want to:

Include a certain part of template code/text only when a user is a member of a particular list.

Scenario:

In this example, we want to display a particular section of HTML when a user is a member of a list in our account called "Master List".

Use:

{if contains(profile.lists, 'Master List')}
<h2>You're also subscribed to our main deals! Awesome!</h3>
{/if}

Page Examples

For use on our Hosted Pages platform.

Conditional Based on List Used to Send Campaign

Use:

Include a selection of code based on the list used to mail a user.

Scenario:

You may host multiple brands on your account and would like a particular logo to display on an opt-down page, dependent on the list used to send a given campaign. In this example, we want an image to appear on the opt-down page when "Master List" members are sent a campaign and click through to the opt-down page.

Use:

{if blast.list == 'Master List'}
<img src="http://www.mydomain.com/logo.gif"/>
{/if}
 
/var/www/docs.sailthru.com/htdocs/data/pages/syntax/common-zephyr-examples.txt · Last modified: 2011/10/31 14:43 by Ian White
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki