| Gallery2 Image Extractor Documentation |
| Written by Jon Schutz | |
| Thursday, 25 January 2007 | |
Gallery2 Image Extractor Content PluginExtracts an image from a Gallery2 album for insertion directly into content. The image can be a specific image, or random, or recently viewed, or any of the other options provided by the Gallery2 Image Block API. Has similar functionality to the Gallery2 Image Block module, but as a content plugin. Basic Example: {mosg2image blocks=randomImage show=title|date maxSize=100 linkTarget=_new} Options: Note that options are CASE SENSITIVE!
The above are all G2 Image Block options. The values are passed straight through to the GalleryEmbed::getImageBlock API, so any parameters added in the future should also work. The following additional options are also supported:
More ExamplesShow a specific imageFirst, visit your album and find the image that you want to show. Click on the image to get the single item view, and then have a look at the URL, which will contain g2_itemId=[number]. Let's say it's 87 in this case, and we want to show the image 420 pixels wide, with title and date captions, opening in a new window when clicked on: {mosg2image blocks=specificItem itemId=87 show=fullSize|title|date maxSize=420 linkTarget=_new} Show a selection of 3 random thumbnails{mosg2image blocks=randomImage show=title maxSize=150 quantity=3} |
|
| Last Updated ( Tuesday, 13 February 2007 ) |




