<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Code for Preventing Edit in Content Editor in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/639956#M28882</link>
    <description>&lt;P&gt;I know this post is kinda old but I came across it and figured I'd answer in case anyone else comes looking for the answer. You can use the &lt;CODE&gt;overrideable=false&lt;/CODE&gt; parameter, so it'll look something like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% module 'module_name'
   path='../modules/module-name',
   overrideable=false
%}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation &lt;A href="https://developers.hubspot.com/en/docs/cms/building-blocks/modules/using-modules-in-templates#parameters-available-for-all-modules" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and I also wrote a quick post called&amp;nbsp;&lt;A href="https://www.stephanieogaygarcia.com/hubspot-website-development/prevent-editing-in-content-editors-in-coded-hubspot-templates" target="_blank" rel="noopener"&gt;Prevent editing in content editors in coded HubSpot templates&lt;/A&gt; for reference.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="cursor: pointer; text-decoration: none; color: #000000;" href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 01:20:42 GMT</pubDate>
    <dc:creator>Stephanie-OG</dc:creator>
    <dc:date>2022-05-27T01:20:42Z</dc:date>
    <item>
      <title>Code for Preventing Edit in Content Editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/555064#M26792</link>
      <description>&lt;P&gt;I just use some modules in one of the page. I just coded it like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% module 'blog_comments_heading'&lt;BR /&gt;path='@hubspot/header',&lt;BR /&gt;label='Blog comments heading',&lt;BR /&gt;header_tag='h3',&lt;BR /&gt;value='Leave a Comment'&lt;BR /&gt;%}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to prevent this from editing in Content editors. what code i have to add?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 20:16:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/555064#M26792</guid>
      <dc:creator>PrasadKD</dc:creator>
      <dc:date>2022-01-12T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Preventing Edit in Content Editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/555395#M26799</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/288683"&gt;@PrasadKD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I couldn't find anything that you need to add to prevent the content from being changed. But I have an alternative. To do this, you have to write your own module and just switch this on in the editing area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oezcan_0-1642069070686.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/57256i3954D923A9C07C7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oezcan_0-1642069070686.png" alt="Oezcan_0-1642069070686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oezcan_1-1642069097837.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/57257i66319669A6AEF278/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oezcan_1-1642069097837.png" alt="Oezcan_1-1642069097837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. And you link this module in your template.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oezcan_2-1642069306333.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/57259iA5A91624FD1F6067/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oezcan_2-1642069306333.png" alt="Oezcan_2-1642069306333.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope,I hope I could help.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Özcan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 10:19:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/555395#M26799</guid>
      <dc:creator>Oezcan</dc:creator>
      <dc:date>2022-01-13T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Preventing Edit in Content Editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/639956#M28882</link>
      <description>&lt;P&gt;I know this post is kinda old but I came across it and figured I'd answer in case anyone else comes looking for the answer. You can use the &lt;CODE&gt;overrideable=false&lt;/CODE&gt; parameter, so it'll look something like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% module 'module_name'
   path='../modules/module-name',
   overrideable=false
%}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation &lt;A href="https://developers.hubspot.com/en/docs/cms/building-blocks/modules/using-modules-in-templates#parameters-available-for-all-modules" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and I also wrote a quick post called&amp;nbsp;&lt;A href="https://www.stephanieogaygarcia.com/hubspot-website-development/prevent-editing-in-content-editors-in-coded-hubspot-templates" target="_blank" rel="noopener"&gt;Prevent editing in content editors in coded HubSpot templates&lt;/A&gt; for reference.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="cursor: pointer; text-decoration: none; color: #000000;" href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 01:20:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Code-for-Preventing-Edit-in-Content-Editor/m-p/639956#M28882</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2022-05-27T01:20:42Z</dc:date>
    </item>
  </channel>
</rss>

