CMS Development

Hubmate
投稿者

Import variable from one custom module to another

解決

Hi,

 

Does anyone know if it's possible to import variables from one custom module to another? I know you can pass information from one template to another with HubL 'macro' and 'import', you can't however use 'import' in custom modules.

 

Thanks for any input.

 

Steve

0 いいね!
1件の承認済みベストアンサー
EricSalvi
解決策
HubSpot Employee
HubSpot Employee

Import variable from one custom module to another

解決

Hey @roisinkirby and @Hubmate,

I tried and I was unsuccessful. The custom modules in the new Design Manager do not support the import function. The purpose of the new custom modules is to keep things simple and clean.

If there was an element in one custom module that was relying on a different variable in another custom module, then this kind of goes against the idea of how the new custom modules work. They are meant to be self-contained for easy distribution. This is one of the reasons why it is now restricted. 
https://designers.hubspot.com/docs/modules/reference#restricted-hubl

元の投稿で解決策を見る

0 いいね!
2件の返信
roisinkirby
HubSpot製品開発チーム
HubSpot製品開発チーム

Import variable from one custom module to another

解決

@EricSalvi do you know if this is possible?

0 いいね!
EricSalvi
解決策
HubSpot Employee
HubSpot Employee

Import variable from one custom module to another

解決

Hey @roisinkirby and @Hubmate,

I tried and I was unsuccessful. The custom modules in the new Design Manager do not support the import function. The purpose of the new custom modules is to keep things simple and clean.

If there was an element in one custom module that was relying on a different variable in another custom module, then this kind of goes against the idea of how the new custom modules work. They are meant to be self-contained for easy distribution. This is one of the reasons why it is now restricted. 
https://designers.hubspot.com/docs/modules/reference#restricted-hubl

0 いいね!