CMS Development

asa_curry
Membro

passing in HubDB_field value returning token error in editor

resolver

for my module in the code below, the module previews (mostly) correctly, and I can select the table, but it won't let me publish as is as it seems the module doens't "see" the table value getting passed in before its rendered: 

 

{% set queryparam = "&content_id__eq="~module.content_field  %}

{% set tableVal = module.hubdb_table %}

{% set table = hubdb_table_rows( tableVal , queryparam ) %}

 

As its functioning as I'd hoped, I just want to publish it...thoughts?

0 Avaliação positiva
1 Solução aceita
anthonypizzurro
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

passing in HubDB_field value returning token error in editor

resolver

Hi There,

 

The custom modules tool is not really set up to handle dynamic HubDB tables (they're not yet portable). We're aware of this issue and looking into a solution.

 

For now, you can get around this by providing a default HubDB ID like this:

 

{% set tableVal = module.hubdb_table or 123 %}

 

Where '123' is a HubDB table that exists in your portal.

 

I hope that helps,

Anthony

Exibir solução no post original

0 Avaliação positiva
2 Respostas 2
anthonypizzurro
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

passing in HubDB_field value returning token error in editor

resolver

Hi There,

 

The custom modules tool is not really set up to handle dynamic HubDB tables (they're not yet portable). We're aware of this issue and looking into a solution.

 

For now, you can get around this by providing a default HubDB ID like this:

 

{% set tableVal = module.hubdb_table or 123 %}

 

Where '123' is a HubDB table that exists in your portal.

 

I hope that helps,

Anthony

0 Avaliação positiva
asa_curry
Membro

passing in HubDB_field value returning token error in editor

resolver

Looking forward to this getting full support, but as long as its not my code for now. 

 

Thank you for the reply!

0 Avaliação positiva