Prevent editing in content editors in coded HubSpot templates

    In the classic "drag-and-drop" editor, there's an option you can enable at the template level that will allow you to lock the module at the page editor, so that editors can't update the content. 

    In a coded template, you can do the same by using the "overrideable" parameter. As the documentation specifies: the parameter "controls whether or not the module can be edited in the content editor. This parameter is the equivalent of using the lock module feature in the Template Builder UI."

    As an example, you might have the following code in your blog post template to prevent editing the comments section on individual posts: 

    Written by: Stephanie O'Gay Garcia Last Updated: May 27, 2022

    Thank you! I appreciate the feedback 😊

    Sorry to hear that! 🙁

    I'd appreciate if you could take a moment to let me know how I can improve this article.

    New call-to-action

    Looking for a HubSpot website developer?

    Let me help you with website themes, templates, page setup and custom modules. 

    Get in touch

    Stephanie O'Gay Garcia

    Hi! 👋 I'm a freelance HubSpot Website Developer based in Toronto (Canada). Give me a shout if you have questions about this post or there's anything I can help you with.