We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47719
    • 11 Posts
    Hi everyone.

    i'm trying to loop through child pages which all have a Gallery (the modx Gallery addon) and then get the cover picture from each gallery. At the moment i have this

    [[!getResources? &parents=`[[*id]]` &tpl=`projectsTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]


    and then this in my chunk

    [[+tv.Gallery]]


    This obvious just outputs the id of the gallery, but putting parameters on the above TV has no effect. Does anyone know how i can do this please? In the page i would get the gallery thumbs thus:

    [[!Gallery? &album=`[[*Gallery]]` &thumbTpl=`galItemFull`]] 


    just to see if i could get this to work i tried adding those params to the tv like this

    [[+tv.Gallery? &album=`[[*Gallery]]` &thumbTpl=`galItemFull`]]


    but it still just outputs the id. I pretty new to modx and no doubt missing some fundamental principle of how to do this but i'm finding it had to locate practical examples of this. Any help would be much appreciated

    Thank you
      • 42046
      • 436 Posts
      Can I get a little clarification of what you are trying to achieve?

      I think you have different galleries assigned to child pages within a container, and the gallery for each child page is selected through a TV. And what you want to do is query each of those child pages and pull through the cover picture for the gallery of every page?