|
Cookbook /
GalleriaSummary: Convert lists of images into a panel of clickable thumbnails, or a scrollable carousel of clickable thumbnails, without requiring a page reload.
Version: 0.5.2 (18-Sep-2011)
Prerequisites:
Maintainer: DaveG
Discussion: Comments and Questions
Demo: Demos on solidgone.org
Update Summary 0.5.2This upgrade incorporates the latest version of the Galleria javascript library, and fixes a naming conflit with BlogIt. SummaryGalleria can be used to convert bullet lists of images into a set of stylish thumbnails in a carousel, each thumbnail clickable for the full image, without needing to refresh the page with a reload. Table of contents
DescriptionConvert lists of images into a panel of clickable thumbnails, or a scrollable carousel of clickable thumbnails, without requiring a page reload. CommentsShow your support and leave a comment, or check out other user websites, or help out and let me know if you have a suggestion or a problem. Love it or hate it, I'd like to know! InstallationTo install:
cookbook/galleria/
|- galleria.php
|
pub/galleria/
|- galleria-X.X.X.js
|- galleria-X.X.X.min.js
|- LICENSE
|
|- /themes/
|- classic
| |- SEVERAL THEME FILES
There is an error. As packed (at least the TAR ball), we get: cookbook/galleria.php not cookbook/galleria/galleria.php We must create the folder "/galleria/" inside "/cookbook/" and move galleria.php to it.
UsageMany more examples on solidgone.org. Use markup to create gallerySimply create a list of images, and then use the galleria markup to with a reference to the image list using an xpath reference to the list container, or the list itself. (:div id="demo1":) * Attach:P5123230.jpg * Attach:P5123234.jpg * Attach:P5123241.jpg (:divend:) (:galleria list="#demo1") Class based galleriesRather than using a markup, you can have galleria applied to all elements with a specific class from
include_once("$FarmD/cookbook/galleria/galleria.php");
$HTMLFooterFmt['galleria-global']=galleria();
And then in the page just make sure your image list is within the "galleria" class, or specify an alternate class. (:div class="galleria":) * Attach:P5123230.jpg * Attach:P5123234.jpg * Attach:P5123241.jpg (:divend:) OR >>galleria<< * Attach:P5123230.jpg * Attach:P5123234.jpg * Attach:P5123241.jpg >><< OptionsThe main option you need to set is
All options can either set in your config.php, where you know they will apply site wide, or at each
Safe ModeSome galleria.js options may be javascript functions. Allowing unknown page editors to execute javascript via markup options is potentially unsafe, so Galleria prevents javascript options from being specified as markup options. You can specify these options from Unsafe options are: Changing ThemesGalleria comes with a single sample theme,
$HTMLHeaderFmt['galleria-theme'] = '<script type="text/javascript">Galleria.loadTheme("'. $PubDirUrl. '/galleria/themes/classic/galleria.classic.min.js");</script>';
NotesGalleria is based on: From the website: Galleria is a JavaScript image gallery framework built on top of the jQuery library. The aim is to simplify the process of creating professional image galleries for the web and mobile devices. Bugs and Suggestions
Change log / Release notesv0.5.2 (18-Sep-2011)''Contributors: DaveG, BruceK
v0.5.1 (22-Jun-2011)''Contributors: DaveG Provides a mechanism for specifying global options in config.php applying across all galleries.
v0.5.0 (21-Jun-2011)This upgrade incorporates the latest version of the Galleria javascript library.
v0.4.1 (5-May-2011)Contributors: DaveG
v0.4.0 (29-Apr-2011)Contributors: Mauro Bieg, DaveG Release SummaryThis upgrade incorporates the latest version of the Galleria javascript library. It's a significant change, with easier setup, multiple carousels per page, less options to worry about, and optional integration with Lightbox. With simplification we did loose some of the sample skins, and also lost the ability to display vertical carousels. If you are upgrading, make sure you:
Release Details
v0.3.1 (31-Jul-2009)Contributors: IDB :)
v0.3.0 (8-Dec-08)Contributors: DaveG
v0.2.0 (8-Dec-08)Contributors: DaveG
v0.1.0 (20-Jul-08)Contributors: DaveG
See also
User notes +5: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |