# Export to Template - Rich Text

**URL:** <https://community.hubspot.com/t/export-to-template-rich-text/3568>\
**Category:** CMS Development\
**Created:** [October 13, 2017, 3:23pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568 "2017-10-13T15:23:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jestlinbaum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jestlinbaum/32/68653_2.png) [@jestlinbaum](https://community.hubspot.com/u/jestlinbaum)\
**Post date:** [October 13, 2017, 3:23pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568/1 "2017-10-13T15:23:30Z")

</div>

This seems ridiculous but I can’t figure it out. All I want to do is expot a rich text module to template context.

`{% rich_text "standard_intro" label="Standard Hero Text", export_to_template_context=True %}`

But I don’t know what to put here to retreive it’s content:

`{{ widget_data.standard_intro.????? }} `

I’ve looked all over the HubL Docs and can’t seem to find an answer.

Thanks!

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [October 15, 2017, 12:32pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568/2 "2017-10-15T12:32:41Z")

</div>

@jestlinbaum,

Think about where you put the content.

`{% rich_text 'random' label='some random content', html="<p>Hi!</p>", export_to_template_context=True %}`

This is an important concept, particularly in cases where modules might have more than one attribute you want to get data from like an img module with an src and alt\_text attribute. That last part of the name target is going to be the attribute you want the data from. If you want the label make it label, if you want the src make it src, if you want the value you make it value. In this case it is html:

`{{ widget_data.random.html }}`

---

<div class="post-metadata">

**Author:** ![dranreb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dranreb/32/41549_2.png) [@dranreb](https://community.hubspot.com/u/dranreb)\
**Post date:** [March 2, 2018, 2:43pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568/3 "2018-03-02T14:43:07Z")

</div>

Thanks for your insight @Jsum. Is it possible to pass this data to global modules?

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [March 8, 2018, 6:26pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568/4 "2018-03-08T18:26:07Z")

</div>

@dranreb,

I don’t have any practical experience playing with that, but the thing is the data from the module is exported to the template so I would assume that as long as the global module is on a page containing the module that you have export and whose data you are targeting then it should work. I would also assume that the module that is exported to the template should exist above any use of it’s data tokens.

I don’t think you can add editable fields to a global module though so I do not believe you could contain the exported module inside of the global module. It would be the equivilant of static text anyways.

---

<div class="post-metadata">

**Author:** ![tmtkobedmx8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmtkobedmx8/32/30191_2.png) [@tmtkobedmx8](https://community.hubspot.com/u/tmtkobedmx8)\
**Post date:** [August 20, 2019, 7:46pm UTC](https://community.hubspot.com/t/export-to-template-rich-text/3568/5 "2019-08-20T19:46:41Z")

</div>

How come the default text/place holder does not appear although the html parameter is present
