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
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?
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.
@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.