We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42701
    • 47 Posts
    In 2.3.2, the ne=`` and notempty output filters don't register default TV content in resources. So if you have a resource with a default TV value, the output filters will skip over it.

    Does anyone know a way to display default TV values with output filters?

    Thanks
      • 3749
      • 24,544 Posts
      That really shouldn't happen. The correct TV value should be retrieved before the output modifier executes. I wonder if the real problem is the parsing order. Is the tag with the output modifier nested inside some other stuff (e.g. a chunk tag inside another chunk inside a snippet call)? Is the tag called cached or uncached?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 42701
        • 47 Posts
        It's inside a template variable with a getResources call in it, which I suspected too might have something to do with it. The getResources tag is not cached, and I uncached the template variable, but the output filter still skips it.
          • 42701
          • 47 Posts
          It's inside a template variable with a getResources call in it, which I suspected too might have something to do with it. The getResources tag is not cached, and I uncached the template variable, but the output filter still skips it.
            • 3749
            • 24,544 Posts
            It's difficult to advise you without knowing more about what you're doing.

            The best approach is usually to put only the resource-specific data in the TV, and put everything else in the template (so the getResources tag and the output modifier would go in the template).

            Feel free to post the full TV value and explain what you're trying to do.

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting