# render an entire module after export\_to\_template\_context=True

**URL:** <https://community.hubspot.com/t/render-an-entire-module-after-export-to-template-context-true/1160>\
**Category:** CMS Development\
**Created:** [February 28, 2017, 1:45am UTC](https://community.hubspot.com/t/render-an-entire-module-after-export-to-template-context-true/1160 "2017-02-28T01:45:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![russelltnails](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/russelltnails/32/82448_2.png) [@russelltnails](https://community.hubspot.com/u/russelltnails)\
**Post date:** [February 28, 2017, 1:45am UTC](https://community.hubspot.com/t/render-an-entire-module-after-export-to-template-context-true/1160/1 "2017-02-28T01:45:06Z")

</div>

I want to export to template environment as a way to queue up a module without it being displayed, and then only render the module if there is content to display. Any way to do this? is export\_to\_template\_context the wrong idea?

---

<div class="post-metadata">

**Author:** ![russelltnails](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/russelltnails/32/82448_2.png) [@russelltnails](https://community.hubspot.com/u/russelltnails)\
**Post date:** [February 28, 2017, 3:58am UTC](https://community.hubspot.com/t/render-an-entire-module-after-export-to-template-context-true/1160/2 "2017-02-28T03:58:41Z")

</div>

I answered my own question  
I needed to call the module again, in this case it was a {% gallery %}  
I wrote an if statement to render the gallery ONLY if there was a slide…what I found was a parameter called “slides”, so writing:  
{% if widget\_data.gallery.slides %}  
{{ widget.gallery }}  
{% endif %}  
This worked great, even though the documentation largely spoke of “.value” as the parameter used to check if a module had value. For some reason .value would not work at all. Also, “slides” is not really spoken of at all in the hubl documentation so it was a pain to figure out.

---

<div class="post-metadata">

**Author:** ![miteshpatel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miteshpatel/32/27089_2.png) [@miteshpatel](https://community.hubspot.com/u/miteshpatel)\
**Post date:** [November 25, 2024, 3:15pm UTC](https://community.hubspot.com/t/render-an-entire-module-after-export-to-template-context-true/1160/3 "2024-11-25T15:15:50Z")

</div>

I need help getting custom field values from the blog post on the blog listing page. How can we print values of repeater field (hubdb row) in the blog listing page?
