-
☆ A M B ☆
- 24,524 Posts
In your getResources or pdoResources snippet (for fetching the 5 latest child pages) use a tpl that has a getImageList snippet with the &limit=`1` property.
http://rtfm.modx.com/extras/revo/migx/migx.frontend-usage#MIGX.Frontend-Usage-UsingMIGXwithgetResources
you need getResources (or pdoResources) to get the resources listed.
Than use getImageList inside a getResources - tpl to get the first image of each resource.
getImageList needs to know from which resource to get the images from, so you need
[[!getImageList?
&tvname=`resourcealbum`
&tpl=`image-only`
&limit=`1`
&menutitle=`[[+menutitle]]`
&docid=`[[+id]]`
]]
Bruno thanks so much it works, I wish I had the brain power you have could not believe it when I refreshed and it worked, just needed that &docid=`[[+id]]` I finally understand it.
Thanks once again
Ian