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

    I have been successfully using Ditto for some basic lists + filters. But now I have a growing catalogue and I need a possibility to introduce filters based on user supplied criteria. Let me give you an example.

    Say, I have a list of documents with two Template Variables assigned and set: Media type (say it can be DVD, Divx), Genre (say: Horror, Comedy, Action).

    Now, I need to display a form stating:

    Choose media type [Drop down box] Choose Genre [Drop down box] [Submit]

    After a user clicks submit, I need to supply these selection criteria to Ditto and use it as a filter for selection.

    So, I know vaguely what I need to do - I need to send a $_POST request, then analyze this request, create a &filter string and supply it to Ditto. But maybe someone has already done something similar?

    Also, how would I then be able to clean up the search criteria?

    Your help will be greatly appreciated!
      • 7455
      • 2,204 Posts
      take a look at tveditor and tvexplorer Thats what you need I think:

      http://modxcms.com/forums/index.php/topic,16456.0.html
        follow me on twitter: @dimmy01
        • 27607
        • 5 Posts
        Great, thank you! I will start digging in this area