We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I’m trying to investigate whether or not it’s possible for Ditto to use info in a user-provided table when it is called on to provide tag-based category listings.

    Can anyone point me to an example of how the "where" parameter is used? It would seem that it might have potential in this regard, but the examples I saw via a Google search suggest an assumption is made about what table is used. Is this correct or is there a way the argument to "where" can be twisted around to operate on a table that is still part of the MODx database, but provided by the user nonetheless?

    Thanks,
    Matt
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      "where" is for a type of filtering in the sql query; "WHERE id = 42" or WHERE pagetitle = ’Home’. It does not change the table being queried.
        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