We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    I wish the values returned in the array from getDocumentChildrenTVarOutput were themselves also in an Array.

    As it stands today, I have One TV (multiple checkboxes) driven from an @SELECT... Based on the checkboxes selected, the values are stored in the db table (modx_site_tmplvar_contentvalues) as: val1||val2||val3

    When returned via getDocumentChildrenTVarOutput, the value of the array index is: val1val2val3; however, in my case, I use numerical ids, so my actual result isn’t:

    val1val2val3
    rather
    123

    See the problem?

    Well, what if I had 12 checkboxes instead of three? I wouldn’t know if ID 12 and 3 were selected, or 1, 2, and 3...etc, etc...

    If the resulting values were delimited in the DB, they should be individually distinguishable in the result set as well (IMO).
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.