Slicing loops
Show posts from different parts or an RSS feed in different places in your email.
In many cases you may want to display a specific post or posts from your data source. We do this by applying a "slice" filter to the feedotter.posts element.
Slicing Syntax
Slicing is a Filter that is applied to a loop of FeedOtter posts.
The "slice" filter accepts one or two parameters and works like this:
More Examples
When working with the feedotter.posts loop syntax. 0 is the index of the first post for the purpose of using Filters.
Using the slice filter will override the Number of Posts UI dropdown.
Pay special attention to the | slice(0,1) part of the loop definition. The first number in the slice() function is the starting point so 0=first post in a data source. The second number is the length or number of posts to display or loop through.
Last updated