The dmWidgetGalleryPlugin
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/ornicar/dmWidgetGalleryPlugin.git plugins/dmWidgetGalleryPlugin
class ProjectConfiguration extends dmProjectConfiguration { public function setup() { parent::setup(); $this->enablePlugins(array( // your enabled plugins 'dmWidgetGalleryPlugin' ));
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.
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.
dmWidgetGalleryPlugin, created on December 1, 2009 by Thibault D, used by 3218 projects