# Import variable from one custom module to another

**URL:** <https://community.hubspot.com/t/import-variable-from-one-custom-module-to-another/8134>\
**Category:** CMS Development\
**Created:** [March 14, 2018, 7:53pm UTC](https://community.hubspot.com/t/import-variable-from-one-custom-module-to-another/8134 "2018-03-14T19:53:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubmate](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hubmate/32/28756_2.png) [@Hubmate](https://community.hubspot.com/u/Hubmate)\
**Post date:** [March 14, 2018, 7:53pm UTC](https://community.hubspot.com/t/import-variable-from-one-custom-module-to-another/8134/1 "2018-03-14T19:53:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![roisinkirby](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@roisinkirby](https://community.hubspot.com/u/roisinkirby)\
**Post date:** [April 5, 2018, 11:23am UTC](https://community.hubspot.com/t/import-variable-from-one-custom-module-to-another/8134/2 "2018-04-05T11:23:39Z")

</div>

@EricSalvi do you know if this is possible?

---

<div class="post-metadata">

**Author:** ![EricSalvi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericsalvi/32/61601_2.png) [@EricSalvi](https://community.hubspot.com/u/EricSalvi)\
**Post date:** [April 9, 2018, 5:51pm UTC](https://community.hubspot.com/t/import-variable-from-one-custom-module-to-another/8134/3 "2018-04-09T17:51:57Z")

</div>

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.

> **[Modules Overview - HubSpot docs](https://developers.hubspot.com/docs/cms/start-building/building-blocks/modules/overview)**
>
> Understanding modules is key to understanding the HubSpot CMS and its power. Modules are reusable components that can be used in templates or added to pages through drag and drop areas and flexible columns.
