Table of Contents

HowTo Use Gallery

Gallery 1

Gallery 2

  • Setup random/etc image blocks in html page outside of gallery
External Image Block
Use a PHP block like the one shown below to include an image block in a PHP page outside of Gallery.

<?php @readfile('http://sharedonline.com/md05/photos/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=title'); ?>
g2_blocks * 	Pipe(|) separate list chosen from: randomImage, recentImage, viewedImage, randomAlbum, recentAlbum, viewedAlbum, dailyImage, weeklyImage, monthlyImage, dailyAlbum, weeklyAlbum, monthlyAlbum, specificItem
g2_show * 	Pipe(|) separated list chosen from: title, date, views, owner, heading, fullSize; the value can also be: none
g2_itemId 	Limit the item selection to the subtree of the gallery under the album with the given id; or the id of the item to display when used with specificItem block type
g2_maxSize 	Scale images to this maximum size
g2_linkTarget 	Add a link target (for example, to open links in a new browser window)
g2_itemFrame * 	Image frame to use around images
g2_albumFrame * 	Image frame to use around albums

If any parameter marked with * is omitted then the site default defined above is used.
Image frames require CSS to be displayed correctly. Include the following in the <head> section to support image frames.

<?php @readfile('http://sharedonline.com/md05/photos/main.php?g2_view=imageblock:ExternalCSS&g2_frames=wood'); ?>

Specify the frame id (or pipe separated list of ids) in the frames parameter. Omit the parameter to support the image frames configured above.
 
howto/gallery.txt · Last modified: 2005/09/02 22:16 by bw
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki