Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
6 posts Page 1 of 1
So, probably, this is unknown to even MR. KK

Happy new year :D !

Usually, it is much hassle to comment out couch tags with

Next time you need to comment out fast use this contruction:
Code: Select all
works with any tag
<_cms:{your tag} >

So this is just making your code uncluttered with ignores.
The next thing is with closing pair of tags:
Code: Select all

Make note, that outputs like <cms:embed, show etc.. need to be commented out also as html text comments, prevent output on the frontend as text:
Code: Select all
<!-- <_cms:show .. /> -->

Let me know if I saved you a moment with this true hack, never mentioned on this forum for 3+ years.
The problem with implementation is that tags stay in html output as text.

universal solution (2in1):

Uppercase on cms, like that:
Code: Select all
<CMS:embed 'code.html' />

This way no traces left, no need to comment out code.

Thanks, been trying to figure this one out for a while.
I think, most common shortcut at the moment is cmsx
Code: Select all
<cmsx:show '123' />


Over time with experience I stopped commenting out (this way) at all.. For quick toggling, this method will always wor though. Just make sure you change prefix for both opening and closing tags if it is a tag-pair (second sample).
In many cases of adding notes to self or others in my code I use <cms:ignore> now.
Thankyou again. Liking the comments tip as well.
You are welcome. There are tons of my tips here viewtopic.php?f=2&t=10650 and many are not even in that list.. I really liked to work with CouchCMS when I had to.

Edit in 2020:


Comprehensive solution that I made to be a custom param.
Code: Select all
<cms:pages .. ignore='1' >..</cms:pages>

  • Does not leave traces in source
  • Works for 98% of Couch tags with my addon, both self-closed tags and tag-pairs.
  • Toggle pieces of code quickly -- ignore='1' change to ignore='0'
6 posts Page 1 of 1