We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22427
    • 793 Posts
    &where=`[{"myTemplateVar:!= ""}]`
    I think this should be
    &where=`[{"myTemplateVar:!= ":""}]`
    • Use a custom chunk tpl for the rowTpl, and wrap your tpl code in an output modifier like this:

      [[+myTemplateVar:notempty=`<li ...>[[+myTemplateVar]]</li>`]]


      I seem to recall that notempty doesn't always work, so you might need to do this

      [[+myTemplateVar:isnot=``:then=`<li ...>[[+myTemplateVar]]</li>`]]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 17546
        • 75 Posts
        Quote from: ottogal at Jul 23, 2014, 10:12 AM
        &where=`[{"myTemplateVar:!= ""}]`
        I think this should be
        &where=`[{"myTemplateVar:!= ":""}]`

        You right ! "404 double quote lost, 404 double quote lost !!!!"
          Low