The dmWidgetGalleryBackgroundPlugin
packages a Diem front widget for displaying image galleries.
It allows to build image galleries and slideshows without writing a line of code. Images are sortable, commentable and linkable. The plugin is fully extensible.
git clone git://github.com/diem-project/dmWidgetGalleryBackgroundPlugin.git plugins/dmWidgetGalleryBackgroundPlugin
class ProjectConfiguration extends dmProjectConfiguration { public function setup() { parent::setup(); $this->enablePlugins(array( // your enabled plugins 'dmWidgetGalleryBackgroundPlugin' ));
php symfony dm:setup
Just open the front tool bar "Add" menu, and drag&drop a gallery somewhere on your site.
Open the MEDIA right panel, then drag&drop images into gallery dialog.
You can set an alt attribute to each image.
To add a link to an image, you can :
Here you can choose the width and height of the gallery. A resize method and JPG quality is proposed, exactly like for the Media Widget.
Here you can specify the transitions interval and effect duration. You can also enable / disable the slideshow controls.
By default the gallery is animated with a standart slideshow with elegant fading.
If you want to change the javascript treatment of the gallery, set the animation to "Custom". Then, in
web/js/front.js
create a $.dm.customGallery($gallery, options) function to handle the gallery treatment:
(function($)
{
function $.dm.customGallery($gallery, options)
{
// do something with the $gallery jQuery object
}
})(jQuery);
Delay in seconds between transitions.
Leave empty to disable transitions.
As usual, you can set one or many CSS classes to the widget.
dmWidgetGalleryBackgroundPlugin, created on May 30, 2011 by 4levels, used by 2393 projects