We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37434
    • 12 Posts
    Hey, I'm totally new to MODX, but I've been working with php for years... I modified GetResources to be able to filter children owned by a parent by a comma delimited list of ints. This is all well and good, but how do I make my code future proof? Should I just save my snippet as a different name... or is there some other cool way to go about doing this?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your modified snippet should be a new one with its own name. Revo being all object-oriented, you won't need to rewrite much, just override the desired functions in the original.
        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