CMS Development

Drashti312
Member

Need to use hubl variable in hubl function call query

I am trying to get hubdb row data which column name 'product_id' is equal to given id,

content.id is blog post id, and below code is placed in blog content area.

 

{% set product_id = content.id %}
{% for row in hubdb_table_rows('692116', "&product_id__eq={{ product_id }}") %}
the value for row {{ row.hs_id }} is {{ row.product_name }}
<h2>Product size:{{ row}}</h2>
{{ row.product_id }}
{{ row.product_name }}
{% endfor %}

 

It's not working, some coding error. Can you please help me over this?

1 Reply 1
roisinkirby
HubSpot Product Team
HubSpot Product Team

Need to use hubl variable in hubl function call query

Hey @Drashti312 can you please share a link to the live / preview page you are working on?

0 Upvotes