Skip to Content

Prevent editing in content editors in coded HubSpot templates

⚠️ Note that this post hasn't been updated for at least a year and the information may be outdated, proceed with caution! (Last updated: May 27, 2022)

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: 

←  Previous Article

Sort a HubDB query by date

Next Article  →

How to design a website for the HubSpot CMS

Contact

Get help from a HubSpot CMS Expert

  • Custom HubSpot themes and reusable and easy-to-use HubSpot templates and modules
  • Technical support and guidance on the HubSpot CMS