# Getting variable from module

**URL:** <https://community.hubspot.com/t/getting-variable-from-module/96667>\
**Category:** CMS Development\
**Created:** [December 22, 2023, 9:40am UTC](https://community.hubspot.com/t/getting-variable-from-module/96667 "2023-12-22T09:40:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnriAlea](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/enrialea/32/77566_2.png) [@EnriAlea](https://community.hubspot.com/u/EnriAlea)\
**Post date:** [December 22, 2023, 9:40am UTC](https://community.hubspot.com/t/getting-variable-from-module/96667/1 "2023-12-22T09:40:36Z")

</div>

Hi,

is there a way to get a variable from a module inserted in a dnd area?

 ![Screenshot 2023-12-22 alle 10.36.45.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/2/d2625e804597492cb26f2a7391cba582ac2cf472.png)

I’ve found the module name but if I try something like this in the template, it doesn’t work:

`{{ content.widgets.widget_1703083225582.body.row_settings.bg_image.src }}`

---

<div class="post-metadata">

**Author:** ![JTBuys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jtbuys/32/62318_2.png) [@JTBuys](https://community.hubspot.com/u/JTBuys)\
**Post date:** [March 12, 2024, 3:04pm UTC](https://community.hubspot.com/t/getting-variable-from-module/96667/2 "2024-03-12T15:04:21Z")

</div>

@EnriAlea, from where are you attempting to reference this modules data? From another custom module? Within the coded template? Within a rich text field?
