CMS help pages
  
You are here: Home > Developers > How to build templates > "Publish only" content

Publish-only content

//* . . . *//

Content within these tags will not be rendered within the CMS. The content will only be included in the page when it is published. Use the publish-only tags to disable functions that would create a problem if activated within the CMS. The tags can be applied anywhere in the template.

Example 1:

<form>
<input type=text name=myinput>
//*<input type=submit>*//
</form>

When the user is updating their website in the CMS they will not see the submit button. The submit button will be included in the published website.

Example 2:

<input type=button value="Click me" //*onclick="someFunction()"*//>

Here, the user will see the button but the button will not do anything within the CMS.