Community Documentation

Snippet to display an image gallery in a page

Last updated October 6, 2006. Created by nigels on July 26, 2006.
Edited by pwolanin, sepeck. Log in to edit this page.

PLEASE NOTE: The php snippets are user submitted and it is impossible to check every one, so use at your own risk. When using an alternate database to the default MySQL, some database queries may not work.

<?php
unset ($output);
$output=image_gallery_page($type = NULL, $tid = 0);
print
$output;
?>

*If $tid = 0 is left as 0 it will display a single image from the gallery and some info about the gallery - Name, How many images and when it was last updated.

* If $tid = ? is set to the gallery you want (for example $tid = 63) it will embed all of the thumbnails into your page.

* image.module must be installed and working and image_gallery module enabled!

About this page

Drupal version
Drupal 4.7.x

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.