Good afternoon! I use migx to add a gallery by this
https://docs.modx.com/extras/revo/migx/migx.tutorials/migx.use-resource-specific-mediasource-and-multifile-uploader. There, as the path by which the files are available, the expression is used:
[[migxResourceMediaPath? &pathTpl=`assets/resourceimages/{id}/` &createFolder=`1`]]
When downloading files, a folder is created with the resource id.
But this method is suitable if the gallery in the resource is one. If you use the nesting of migx and add several galleries, you get some jamb. It seems to me that the expression above should look something like:
[[migxResourceMediaPath? &pathTpl=`assets/resourceimages/{id}/{migx_id}/` &createFolder=`1`]]
, Where the id migx of each gallery should be considered.
Can someone tell me how to pull out the id and modify this expression?
Sorry for my English.