We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43864
    • 151 Posts
    I have a migx with main-categories (the user can add or delete categories). I want to use the output of that migx into another migx in a listbox so the user can select a main-category and add a product to it. How to do this? I know how to make a listbox with static data, but I want the data to come from a migx.

    Also what happens with the products under a category if that category is deleted by the user?

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      you can try in input-options:

      @EVAL return $modx->runSnippet('getImageList',array('tpl'=>'@CODE:[[+category]]','outputSeparator'=>'||','tvname'=>'yourTV','docid'=>'yourResourceID'));
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 43864
        • 151 Posts
        @Bruno17: this works, but one small question: I read on the official php website that the use of EVAL is dangerous. (http://php.net/manual/en/function.eval.php). Is it a risc to use it in this case?