From LifeType Wiki
Name: Embedded Gallery
Latest version: 0.1
Download link: http://downloads.sourceforge.net/lifetype/1.2_gallery.zip
License: GPL
Author: Vauthrin
[edit] Description
This plugin integrates Gallery2 into your blog. It also allows you to add an image block to your existing template.
[edit] Configuration
The plugin configuration page can be found under Control Center->Embbed Applications.
- Set Embed uri to "index.php?op=gallery".
- Set the other option according to your plog installation.
There are two functions that can be used in your templates. Those are:
- $gallery->isEnabled() to check the plugin is enabled or not.
- $gallery->getImageBlock() to get the image block from Gallery2.
An example setup would do the following:
- In order to allow access to Gallery2 add this code to your template:
{if $gallery->isEnabled()}<a title="My Photos" href="index.php?op=gallery">{$locale->tr("gallery")}</a>{/if} - To have the image block show up, add this code to your template:
{if $gallery->isEnabled()}{$gallery->getImageBlock()}{/if}
The gallery template (galleryShow.template) is locate in the plugin's template folder. This file has more options on what can be displayed.
If you want to use the image blog you need to install and activate the image block module (gallery2 modules).
[edit] Notes
Gallery2 is still in beta, but is approaching completion. This means that this plugin is likely to change/break with the new releases. There is still some work that can be done with this plugin (such as user integration).
