CMS Development

Patryk
Member

HubDB row name from variable

I'm trying to make following code work, but it seems like it's impossible:

 

{% set row = hubdb_table_row(675328, 5442522886) %}

{% set column_name = 'finished_projects' %}

{{ row.{{ column_name }} }}

 

Second pair of curly braces inside {{ row }} seem to break the template engine. Any ideas how to approach this? Is it even possible?

0 Upvotes
2 Replies 2
roisinkirby
HubSpot Product Team
HubSpot Product Team

HubDB row name from variable

Hey @Patryk could you please share a link to the template / preview or live page you are working on if you're still experiencing this issue?

0 Upvotes
Patryk
Member

HubDB row name from variable

This is the full template code.

0 Upvotes