Hi, I'm creating a custom module to have a slider post. I need to choose the blog from a list and have the number of posts to display. The syntax to set the blog is this: {% set posts = blog_recent_posts('default', 5) %} but how do I make dynamic the field "default" = blog name or its id, and the field "5" = number of posts to be displayed?
I've tried with this sintax
{% set posts = blog_recent_posts('{{widget.blog_name}}', '{{widget.n_posts}}') %}
this would create editable fields on the editing page. You would put the blog ide in the text field, and use the choice dropdown to choose the blog limit.
Let me know if this is what you need and if it works.