Is there a Hubl Click event or alternative

Hello,

I want to populate the blog_recent_copy_posts function with a dynamic value. Is there a click event in hubl or a work around to do this.

For example if I have some buttons that have the id of different topic.slugs is there a way to populate the function on click?

{% set topic_posts = blog_recent_topic_posts(‘default’, ‘the_clicked_id’, 5) %}

@narmstrong,

The page has to reload.

That’s ok though. Create javascript on click function that changes the window.location to the page url plus a query:

https://www.website.com

?blog_topic=topic1

create a variable for the query and set the variable as the dynamic piece of your blog function.