We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7327
    • 195 Posts
    Hey guys,

    Does anyone know what the PHx ":and" condition turned into in Revolution? I know there are built-in conditional modifiers :if, :then, and :else available when accessing TVs and chunks. And is there anyway to access these with Snippet calls?

    Cheers,
    Les
      • 22019
      • 390 Posts
      Not entirely equivalent, but most of the functionality is now in output filters. The documentation is a little out of date (I think the conditionals are missing), but you can find the full list if you look in /core/model/modx/filters/modoutputfilter.class.php

        Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
        • 7327
        • 195 Posts
        Hmm... I see the following:

                            case 'or':
                                $condition[]= "||";
                                break;
                            case 'and':
                                $condition[]= "&&";
                                break;
        


        Now how to use these...
          • 22019
          • 390 Posts
          Usage is here http://rtfm.modx.com/display/revolution20/Input+and+Output+Filters - I was just warning you that not all of the filters appear in the doc.
            Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86