We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20364
    • 89 Posts
    My goal is to have a multi-select list of all documents under a parent. For my Input Option Value, I tried

    return $modx->getAllChildren('16', 'menuindex', 'ASC', 'id, pagetitle');


    and then did "||" as the delimiter.

    This didn’t work, but did create the appropriate amount of blank list options, so I know it is partially working.

    What am I missing in terms of grabbing this list and having it appear in a listbox? If anyone can help here, my second question is, how do I parse the output it gives back to the TV?

    John

    *EDIT*

    Here is the solution:

    http://modxcms.com/forums/index.php/topic,39435.0.html

    Now, how to manipulate the output? (Which is currently id,id,id)
      • 4058
      • 17 Posts
      I used @select binding.

      Here is an example of the input option within my Template Variable:

      @SELECT pagetitle FROM modx_site_content WHERE parent = 53

      I have mine set to check box, but you could just as easily use any of the appropriate input types as well as any of the document objects besides pagetitle.