We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    I was wondering if there is a way to add comments (not html comments) into the template (chunk too) markup that would be removed by MODx during rendering so that they wont show up in the source code. I would find it useful to leave some instructions in the template code to help the client understand the work better, by adding html comments these remain visible to end user so they are not private.

    Is there a modx comment tag? I have noticed that if you put comments in {{}} that they will not pass through as long as they dont match any current chunks, but is this a good idea to use for comments?
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 33337
      • 3,975 Posts
      Nothing out of the box atm. But you can develop a plugin to look for a text block and then remove it on web page render.

      i.e. [[--commentblock--] [--commentblock--]]
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link