Random image block - restrict to specific galleries?

mediafrenzy - January 25, 2008 - 09:02

Hi, does anyone know if its possible to restrict the image modules Random Image block to only specific galleries?

"Restrict"...

asaaheim - January 25, 2008 - 11:58

By "restrict", do you mean that your random block should only show images from given galleries, or do you want the block itself to only show on specific gallery pages?

If you want a Random Image Block with images from given galleries, please have a look at http://drupal.org/node/53987.
Else, to have the Block only show on specific pages, toggle the visibility settings in the block's configuration settings.

Not sure if I understood your question, but hoping this is of help!

AS

Yup

mediafrenzy - January 25, 2008 - 12:42

Yeah thats what I meant, the random block only displaying images from given galleries. Worded after a few whiskys I think ;) Presumably I could change something fairly simple round with that code snippet you linked, to display from a several chosen galleries as opposed to the singular? Cheers

I can't get this to work. I

mdowsett - May 6, 2008 - 02:39

I can't get this to work.

I put the plain text image gallery name in the first red text...I tried with and without the single-quote and neither worked.

Do you have to change the other red-text as well?

(sorry, I don't know code to figure that out)...thx

 
 

Drupal is a registered trademark of Dries Buytaert.