We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I made a snippet to get the modResource, as that appears to be the replacement for documentObject, and I thought it would be a good beginning to document what is available there and a few ways to make use of it. Yow! Over 6,000 lines of stuff shocked shocked

    I notice there is a section "resourceListing" that seems to be just like "documentListing". So far I only have two documents, but will these hold all of the documents in the site? That’s six fields for each document.
                        [documentListing] => Array
                            (
                                [1] => Array
                                    (
                                        [id] => 1
                                        [alias] => home
                                        [parent] => 0
                                        [isfolder] => 1
                                        [content_type] => 1
                                        [path] => 
                                    )
    
                                [2] => Array
                                    (
                                        [id] => 2
                                        [alias] => 
                                        [parent] => 1
                                        [isfolder] => 0
                                        [content_type] => 1
                                        [path] => 
                                    )
    
                            )
    


      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
    • Yep, every field in the context.