We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24865
    • 289 Posts
    It uses native MODx input and output filters. smiley

    http://rtfm.modx.com/display/revolution20/Input+and+Output+Filters
      @MarkGHErnst

      Developer at Adwise Internetmarketing, the Netherlands.
      • 7327
      • 195 Posts
      Oh what I meant was, do the :if, :then, and :else conditional modifiers exist out of the box? Because I can’t find those in input and Output Filters Modx Revo docs.
        • 17499 ☆ A M B ☆
        • 872 Posts
        Quote from: diatomin at Oct 30, 2010, 03:01 AM

        Oh what I meant was, do the :if, :then, and :else conditional modifiers exist out of the box? Because I can’t find those in input and Output Filters Modx Revo docs.

        Yes they are! smiley

        edit: You can find all the available filters in the following file "core/model/modx/filters/modoutputfilter.class.php"
          • 24865
          • 289 Posts
          Yes, they exists out of the box. Much like the other modifiers they use native code provided by MODx itself.
            @MarkGHErnst

            Developer at Adwise Internetmarketing, the Netherlands.
            • 24531
            • 213 Posts
            Somebody put :if :then :else in docs. Don’t get me wrong, [[If]] is a great snippet but output modifiers are much shorter to write smiley
              • 24865
              • 289 Posts
              Aside from that, statements like:

              [[*content:len:eq=`0`:then=`Empty`:else=`Not empty, duh.`]]

              Have already been though of by MODx as so:

              [[*content:notempty=`Not empty, duh.`]]

              Only use those statements when you’re building something more complex like doing calculations for resizing layouts, table columns and others.
                @MarkGHErnst

                Developer at Adwise Internetmarketing, the Netherlands.
                • 7327
                • 195 Posts
                Thanks for the clarification. I was under the impression PHx was totally wiped off the face of Revo, and those conditional statements are useful for creating interesting visuals.