We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35756
    • 166 Posts
    Hello there!

    I've been struggling with a problem for hours now and after a lot of trying and researching I finally want to ask here...

    There are given some resources inside a folder, which all have an image added via MIGX by this tutorial:
    http://rtfm.modx.com/extras/revo/migx/migx.tutorials/migx.fancybox-images-with-seperate-placeholders-in-richtext-content

    Getting the "nested" images via the normal getresource-call and the chunk works well:

    [[!getImageList? &tpl=`Titelbild` &tvname=`fancyboxTv` ]]

    But now I need the "nested" images of resources of another folder without a getresources-call.

    Being inside the resource I'm editing is a form and I'm grabbing some Session-variables (maybe this might help somehow?). By using the normal getimagelist-call from above, the nested image of this resource gets displayed.

    But how can I tell getimagelist to use the nested image of another resource, maybe by the id of the resource I need?

    I tried a lot based on other forum-threads, inbetween by adding the following to the getimagelist-call:

    &docid=`[[+id]]`
    &originalResourceId=`[[+id]]`
    &resid=`[[+id]]`

    I tried to change the [[+id]] by the number of the resource I want to grab the image of, but no success.

    I guess it's simple, but I don't understand it atm.

    Any tip would be helpful!

    Cheers in advance!

      • 35756
      • 166 Posts
      Ok...idk what I did wron before, but now it's working like I thought earlier it would:

      [[!getImageList? &tpl=`Titelbild` &tvname=`fancyboxTv` &docid=`75`]]