Adds a galleryGrid widget to the front Add menu.
It allows to build image galleries without writing a line of code.
Images are sortable and can be viewed in with the nice Diem built-in ColorBox plugin.
git clone git://github.com/4levels/dmWidgetGalleryGridPlugin.git plugins/dmWidgetGalleryGridPlugin
class ProjectConfiguration extends dmProjectConfiguration { public function setup() { parent::setup(); $this->enablePlugins(array( // your enabled plugins 'dmWidgetGalleryGridPlugin' ));
php symfony dm:setup
Just open the front tool bar "Add" menu, and drag&drop a gallery grid 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 total width and height of the gallery grid. A resize method and JPG quality is proposed, exactly like for the Media Widget. You have to assign a valid grid size, defined as rows x columns, eg. 3 x 3. The margin field is used to space the thumbnails. The actual thumbnail size is calculated by the width/height, cols/rows and margin values. The Zoom size fields are used to set the image size in colorbox after clicking a thumbail.
Choose the way how colorbox should be opened: 'Elastic' is the default option as seen in Diem FrontEdit. Other values are 'Fade' or 'None'.
Sets the speed of the fade and elastic transitions, in milliseconds. Defaults to 350.
The overlay opacity level. Range: 0 to 1. Defaults to .85
More config options for the ColorBox. See the ColorBox documentation for all options and examples
As usual, you can set one or many CSS classes to the widget.
.content_gallery_grid ol li {
float: left;
}
Open issues
Closed issues
dmWidgetGalleryGridPlugin, created on March 22, 2010 by 4levels, used by 321 projects