<![CDATA[ ResourceMediaPath - migx nested in migx - My Forums]]> https://forums.modx.com/thread/?thread=102624 <![CDATA[ResourceMediaPath - migx nested in migx]]> https://forums.modx.com/thread/102624/resourcemediapath---migx-nested-in-migx#dis-post-552932 I have migx nested in migx. Child migx is used to download files.
The child migx has a file source with (for multiupload):

basePath [[!migxResourceMediaPath? &pathTpl=`/assets/content/files/resources/{id}/`&createFolder=`1`]]
baseUrl [[!migxResourceMediaPath? &pathTpl=`/assets/content/files/resources/{id}/`&createFolder=`1`]]

Because of this, each row of the parent migx corresponds to the same files as specified {id}.

I tried the path:
[[!migxResourceMediaPath? &pathTpl=`/assets/content/files/resources/{id}/{MIGX_id}/`&createFolder=`1`]]
But it does not work. What should I do to delimit the children migx by folders?]]>
systemshock89 Aug 02, 2017, 03:36 PM https://forums.modx.com/thread/102624/resourcemediapath---migx-nested-in-migx#dis-post-552932
<![CDATA[Re: ResourceMediaPath - migx nested in migx]]> https://forums.modx.com/thread/102624/resourcemediapath---migx-nested-in-migx#dis-post-552935
If you're planing to have a lot of images within this nested setup, it might be a better aproach to have all of this in custom-tables and use MIGXdb instaed.
Then it should also be possible to seperate the upload-folders for each sub-MIGX-thing.

]]>
Bruno17 Aug 02, 2017, 03:56 PM https://forums.modx.com/thread/102624/resourcemediapath---migx-nested-in-migx#dis-post-552935