We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26310
    • 130 Posts
    Is it me or is there a typo on the basic filtering example page for Ditto?
    http://ditto.modxcms.com/tutorials/basic_filtering.html

    The filter
    id,50,2|id,52,2
    means "exclude any document whose id field equals 50 or 52."

    Then the table below that cites that a mode of 2 will include or equal the criterion.
    1
    is not equal to the criterion (!=)
    2
    is equal to the criterion (==)

    I’m not putting it past myself that I’m completely misunderstanding the page but this just doesn’t seem right.
      I twitch because I care....and drink too much coffee.
      • 19741
      • 90 Posts
      It’s a litte bit confusing (compared to other filter techniques) ...

      Then the table below that cites that a mode of 2 will include or equal the criterion.
      No - see below

      2 and 1 are the filtermodes. Both mean, what to filter (what should not be shown). So i think, there’s noch mistake, especially if you read "Exclude a document if its value in the specified field" in heading of the table.
        Bye,
        Mithrandir
        • 26310
        • 130 Posts
        ah ha! Thanks Mithrandir. I never fully read the heading. That makes sense. I tend to try to skip ahead (too much it seems) and was just looking at the table data and not the whole table.

        *** Insert foot in mouth! grin
          I twitch because I care....and drink too much coffee.