I didnt want to start a thread on this, but I have been literally banging my head into a wall for days trying to figure this out.
MODX Revolution 2.2.0-pl2 (traditional)
PHP Version 5.2.17
I have a website I am putting together for my wife (she hates Wordpress and most everything else I showed her)
This is mainly a photography site, with very little content on it, aside from the photos.
structure is lined out like this:
Home page contains a small slideshow, and basic navigation around the site. at the bottom of the page is a featured posts section (recent galleries) <<this is what is haunting me at the moment
navigation of the site goes like this:
Locations jump page->Type of Location (school, hospital, etc)->actual destination (the name of a school, hospital, etc)
on the ACTUAL DESTINATION page are basically thumbnails that link to 3 galleries (one for each of the users) so that each person has their own subsection of a destination
gallery structure is laid out pretty much IDENTICAL to the navigation structure, to keep things on a 1:1 scale so it makes sense to the users. they click on ADD resource, name it, select a parent gallery for that location, then everything is automatically generated for them. all this layout is good at the moment, thanks to some awesome tips here in the forums and help from IRC folks.
the problem is with my getResources call (the FEATURED POSTS section).
using this page as a reference (this works by the way)
https://forums.modx.com/thread/73571/using-galleryitem-with-getresources-produces-duplicate-images-in-modx-revolution
i can get the images to display properly.
there are 2 problems with this method though:
1. this requires the user to select a TV image to be used as a 'FEATURED POSTS' thumb
2. the GalleryItem input type contains too many options. i want this as automated as possible. user selects an image and thats it. no options for them to muck up.
ideally i would prefer that the getResources call pull a random image from any of the child galleries located on the page that the call is referencing.
HELP?
i realize that a custom snippet would probably be ideal for this, but i am clueless on where to begin. i have been all over rtfm with a fine tooth comb, searching these forums for days, and bugged enough people on IRC....
[ed. note: pirateghost last edited this post 14 years, 2 months ago.]