We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30176
    • 99 Posts
    Is it possible on a Template Variable Input Option Value to select from two parents?

    Right now my Input Option Value is:
    @SELECT pagetitle, alias FROM modx_site_content WHERE parent='235'


    What might the statement be if I would like to select from parents 235 and 245?

    Thank you.
      "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
      -J.R.R. Tolkien from The Lord of the Rings
      • 4172
      • 5,888 Posts
      try
      @SELECT pagetitle, alias FROM modx_site_content WHERE parent IN (235,245) 
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 30176
        • 99 Posts
        Bruno, that works perfect. Thank you!
        It really helps with the design of my resource tree to be able to do this! Thanks again.
          "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
          -J.R.R. Tolkien from The Lord of the Rings