We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14730
    • 34 Posts
    I have a chunk with a getResources call which outputs a list of resources. I use this list to feed another getResources call and show only those resources.

    I noticed that it only works if I call the chunk earlier on the page; in other words:
    This doesn't work:
    [[getResources? &resources=`[[$listOfIDs`]]

    But this does work:
    [[$listOfIDs]]
    [[getResources? &resources=`[[$listOfIDs`]]

    Is this a bug? Anyone any clues what's going on here?
    Thanks!
      • 26903
      • 1,336 Posts
      Should `[[$listOfIDs`]] not be `[[$listOfIDs]]` ie your last backtick is in the wrong place.
        Use MODx, or the cat gets it!
        • 3749
        • 24,544 Posts
        The forum ate shamblett's code.

        Actually, both your examples have the back-ticks in the wrong place and are missing the closing brackets:


        [[getResources? &resources=`[[$listOfIDs]]']]


        (assuming that the listOfIDs snippet returns a comma-delimited string of IDs).
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting