You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: