i try to display a image grid in the body content like in a the block grid
is it possible ??
whith a snippet ??

Comments

phildu’s picture

i found myself the solution a snippet

http://drupal.org/node/26502

for example

$block = module_invoke('gallery', 'block', 'view', 2);
print $block['content'];
kiz_0987’s picture

You should also be able to change the block placement to "content" in admin/block.

phildu’s picture

Title: display a image grid in the body content » display a image grid of a specific album in the body content

i realize that i cannot spécify what album i want to display ?
if i change the 2 by the album number .... nothing happen

any idea ???

kiz_0987’s picture

gallery.module (CVS version) now supports a specific item ID in the image grid. I do not know if your module_invoke method will work for it though. You should be able to move the block into the content just by changing the block region.

phildu’s picture

i know this option but you cannot use it with different album for different node

alexandreracine’s picture

Component: User interface » Code / API
Status: Active » Fixed

Please look at the latest version.

http://drupal.org/project/gallery

Closing (cleanup)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.