We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Here's a good example of just that.
      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
      • 13218
      • 134 Posts
      Exactly. That's where I got it from, of course.

      When using this tutorial, keep in mind though that step 3 in Create the dynamic resource-specific media source may need an additional attribute like this:
      [[migxResourceMediaPath? &pathTpl=`assets/resourceimages/{id}/` &createFolder=`1`]]

      This will (obviously) create a new folder for the resource, if none exists.
        @itWilllBeOK
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        You can also use MODX tags, like
        [[migxResourceMediaPath? &pathTpl=`[[++assets_path]]images/gallery/{id}/` &createFolder=`1`]]
        [[migxResourceMediaPath? &pathTpl=`[[++assets_url]]images/gallery/{id}/` &createFolder=`1`]]
        
          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