We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 577
    • 132 Posts
    I must be missing something. Once again I have gone through the Doc on Bobsguides.com top to bottom but can't seem to get this to work. I have attached an image of screenshots to help illustrate what I have setup.

    My issue is that even though I can set the IDs of the parent folders in the config.php for my component the child resources are not getting exported. Resource 33 "Site Template 1" does not get into the _build

    ***See v2 image. System is not allowing me to delete fist image which is wrong

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

    [ed. note: aesmith last edited this post 13 years, 6 months ago.]
      "One of these days I will get around to my own website... Its only been about 12 years... maybe tomorrow smiley"
    • discuss.answer
      • 3749
      • 24,544 Posts
      Try $getResourcesById = true, wink

        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
        • 577
        • 132 Posts
        Quote from: BobRay at Apr 20, 2013, 01:42 AM
        Try $getResourcesById = true, wink


        Thank BobRay,

        That worked. My interpretation of the setup was that with the identification of the parent ids the children would just get picked up. I imagine with $getResourcesById = false that whole section of the array is simply skipped. I had not considered that option.
          "One of these days I will get around to my own website... Its only been about 12 years... maybe tomorrow smiley"
          • 3749
          • 24,544 Posts
          With $getResourcesById=false, it's only looking for pagetitles, and you didn't list any. wink
            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
            • 577
            • 132 Posts
            Is that to say that this is valid?

            'parents' => array('Docs','Examples') when $getResourcesById=false
              "One of these days I will get around to my own website... Its only been about 12 years... maybe tomorrow smiley"
              • 3749
              • 24,544 Posts
              Yes, though getting them by ID is more reliable (since you can have multiple Resources with the same pagetitle) and a little faster.
                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