Random image block from specific gallery?

lclontz

Joined: 2006-08-22
Posts: 1
Posted: Tue, 2006-08-22 18:36

I know this must have been asked before, but I've been unable to find an answer to it in the forums.

I have an image block that I want to serve to a drupal site with a random image. Easy enough, except I want the image block to only be populated out of a specific album rather than the entire Gallery 2 install.

What I'm trying to do is let users select a "featured" photo on the home page of the site by making an album that at any given time has only one photo in it. The users move the photo they want to feature into that gallery and it gets pulled into the block without them having to figure out the ID of the image they want to feature.

Is there a better way to do this? Thanks in advance.

 
wesgood

Joined: 2008-10-08
Posts: 16
Posted: Fri, 2008-10-10 02:56

I just found the solution.

Use imageblock for a random image, and insert this into the URL argument list.

g2_itemId=<id of album> where <id of album> is of course, the ID of the album you want to use.