Newsletters

Overview

In the newsletter template you can use the following drops

Below you can see all the available drops on the newsletters object


Name Description
newsletters.all Fetch all visible newsletters and dropify them

 

Below you can see all the available drops on the newsletter object


Name Description
newsletter.id Unique ID
newsletter.url Newsletter URL
newsletter.name Name of newsletter
newsletter.subject Subject of newsletter
newsletter.articles Array with Article drops
newsletter.products Array with Product drops


 


Newsletter articles

You can add articles to your newsletter. This could for example come to use if you want to promote your latest blog articles in your newsletter.

 

Get the newsletter's related articles 

Loop through each article in the newsletter and display the article name

{% for article in newsletter.articles %}
  {{ article.name }}
{% endfor %}

 


Newsletter products

You can add products to your newsletter. For example if you have a campaign and you want to show a few products in that campaign in your newsletter.

 

Get the newsletter's related products 

Loop through each product in the newsletter and display the product name

{% for prod in newsletter.products %}
  {{ prod.name }}
{% endfor %}

 

 


Newsletter signup snippet

The name attribute can contain drops found in the Subscriber page, and it's written like this: name="subscriber[drop]".

The hidden input field assigns the person a newsletter group, in the case of the example below, the person signing up for the newsletter would be in the newsletter group with the name "studentsOfSlytherin".

Below is a common newsletter signup snippet:

<form action="/n/subscribe" method="post">
   <input type="hidden" name="group" value="studentsOfSlytherin">
   <input type="email" name="subscriber[email]"/>
   <button class="button">Skicka</button>
</form>

Updated: 2020-12-04