How to add Custom module values to Hubspot functions

Highlighted
Top Contributor

Hi developers,

I am using the following code to get the post using tags!!  how can I make the Tage section and Blog ID section dynamic, I need to pull the values form custom modules but when I tried to pull the values and add it inside the functions its showing error it's showing errors

 

{% set tag_posts = blog_recent_tag_posts('xxxxxxxxxxx', 'featured', 100) %}

How can I make this section dynamic, this is the link of the error I am getting https://cl.ly/8460e20e4221 . can anyone please help

 

 

Reply
0 Upvotes
1 Reply 1
Advisor

Hey @subin 

 

I'm not 100% on this but might this be a usecase for the export_to_template_context parameter? As the custom module's data is scope to its own context?

 

edit: spelling

Reply
0 Upvotes