Slicing loops
Show posts from different parts or an RSS feed in different places in your email.
Slicing Syntax
[% for post in feedotter.posts | slice(0,1) %]slice(3) // Start at the first post and loop 3 times. Displays post 1,2,3
slice(0,3) // Same as the first. Start at the first post and loop through 3 times. Displays post 1,2,3
slice(3,3) // Start looping at post 3 and loop 3 times. This will display post 3,4,5More Examples
// Start looping at the first post(0) and stop after 1 post.
[% for post in feedotter.posts | slice(0,1) %]
[[post.post_title]]
[[post.post_url]]
[[post.post_description_text]]
[% endfor %]// Skip post 1. Start looping with the second post(1). Stop after 4 posts
[% for post in feedotter.posts | slice(1,4) %]
[[post.post_title]]
[[post.post_url]]
[[post.post_description_text]]
[% endfor %]Last updated
