rss-to-email icon indicating copy to clipboard operation
rss-to-email copied to clipboard

Is there a way to limit the number of Entries that show in the newsletter?

Open andywise123 opened this issue 4 years ago • 0 comments

I'd love to be able to limit the number of entries that show up in the newsletter. I tried to do this by adapting the sample template on the web implementation, and hard coding the number of headlines in line 48: {{#lt @index 7 }} ... {{/lt}} but what I'd like to do for my less technical fellow board members is to have it entered in a web form and then that gets sucked into the mjml file and that limits the number of headlines in the newsletter. I tried this using a new version of the website form you created by changing the Intro field into an input type=number and then changing the line above to {{#lt @index {{intro}} }}
or {{#lt @index {{[intro]}} }}
or (at Karl's suggestion) {{#lt @index intro }} or {{#lt @index [intro] }} but I just get an error and nothing displays or I get the rest of the template and no Entries at all.

I saw on GitHub that there's a Limit function, but I couldn't figure out how to get this to work with my limited skills.

andywise123 avatar Mar 15 '21 22:03 andywise123