This is working:
[[*longtitle:is=``:then=`[[<br />]]`:else=`<h1 style="margin-top:0.7em">[[*longtitle]]</h1>`]]
This not (like in my first post):
[[*longtitle:notempty=`<h1 style="margin-top:0.7em">[[*longtitle]]</h1>`]][[*longtitle:empty=`<br />`]]
Can anyone confirm that the above code is working for him. Except BobRay???
MODx tags are parsed whether they are in HTML comments or not.
Yes. I know. That is what the error looks like. But it would be nice if there is a construct which allows me to comment something out without parsing or rendering to html...
Something like this:
[[# My Comment, bla bla]]
Which gets totally removed by the parser, without processing or displaying...
loxy