# export\_to\_template\_context flag

**URL:** <https://community.hubspot.com/t/export-to-template-context-flag/98912>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [January 29, 2024, 6:34pm UTC](https://community.hubspot.com/t/export-to-template-context-flag/98912 "2024-01-29T18:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAmaral7](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@TAmaral7](https://community.hubspot.com/u/TAmaral7)\
**Post date:** [January 29, 2024, 6:34pm UTC](https://community.hubspot.com/t/export-to-template-context-flag/98912/1 "2024-01-29T18:34:00Z")

</div>

Hi there,

Having an issue with a webpage template that was built by an outside vendor. We have smart content on global modules because we operate across different regions. I’ve noticed that I can no long publish updates to our webpage.html template as this error keeps popping up  
_Error:1:0This template type may not contain widgets with smart content and the export\_to\_template\_context flag - this will render the default content and never the smart content_

I’ve tried everything to remedy this but removing the export to template line breaks the page. Any insight would be greatly appreciated. This template is used on our homepage [ecoonline.com](http://ecoonline.com)

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [January 30, 2024, 1:27am UTC](https://community.hubspot.com/t/export-to-template-context-flag/98912/2 "2024-01-30T01:27:22Z")

</div>

Hi @TAmaral7 It’s not possible to have the smart content direclty in the template, but the smart content you’ve added to the page should still exist from the module.

Are you trying to edit/manage the smart content from Design Manager? or make other changes to the template?

Can you share more context about the code where the _export\_to\_template\_context_ is used within the template?

---

<div class="post-metadata">

**Author:** ![TAmaral7](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@TAmaral7](https://community.hubspot.com/u/TAmaral7)\
**Post date:** [February 9, 2024, 3:38pm UTC](https://community.hubspot.com/t/export-to-template-context-flag/98912/3 "2024-02-09T15:38:25Z")

</div>

Hi Jennifer,

Sorry it’s taken me a while to reply. It’s used throughout the header and navigation of our base.html template. I’ve attached an example of what it looks like within that template. The smart content is in place because we are a multi-language site. Why the previous developers placed so many _export\_to\_template\_context_ flags throughout this template is beyond me at this point.

 ![109170i901A6C8F27E75A93.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/11618eddd3fa6786069951c79bcf085a7936031d.jpeg)

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [February 9, 2024, 4:19pm UTC](https://community.hubspot.com/t/export-to-template-context-flag/98912/4 "2024-02-09T16:19:35Z")

</div>

@TAmaral7 I would highly recommend going back to Avidly for help with getting the error resolved.

I don’t understand why it’s coded this way - and why multi-language smart content is coded on the back-end instead of using the native multi-language content available within HubSpot.
