... Elxis version 2009.3 codename Aphrodite is out, download it from Elxis Download Center (EDC) ...
Easy Gallery
From Elxis Official Documentation
Contents |
Introduction
With the Easy Gallery bot you can create and display image galleries inside Elxis content items or inside IOS Reservations v3.1+ hotels and locations description areas. The bot is very easy to use and allows you to display images from various sources:
- A folder in your site containing images.
- An IOS Gallery category (download IOS Gallery).
- IOS Reservations v3.x location images.
- IOS Reservations v3.x hotel images.
- IOS Eshop v1.x or v2.x product images.
| The images are being displayed in a Lightbox window using Mootools and Slimbox. On IOS Reservations v3.x pages Easy Gallery javascript does not get loaded as it is loaded automatically by the IOSR component. Don't use this Bot on pages where you use other Javascript libraries such as jQuery as you will face javascript conflicts and Easy Gallery wont work. |
Usage instructions
Open an Elxis content item, or an IOS Reservations hotel/location for edit (or create a new one) and type inside the text editor's description field:
{gallery width=80&height=80&title=Sample gallery}images_to_load{/gallery}
Attributes
- width Controls the thumbnails width (optional, value in pixels). If not supplied the global value from the bot configuration parameters will be used.
- height Controls the thumbnails height (optional, value in pixels). If not supplied the global value from the bot configuration parameters will be used.
- title A title for the gallery (optional).
Loading images
The images_to_load text depends on the source of the gallery images.
Load images from a folder
Enter the relative path from the Elxis root directory to the folder containing your images. Examples:
{gallery}images/flowers/{/gallery}
{gallery title=World biggest cities}images/stories/cities/{/gallery}
Display an IOS Gallery category images
Enter the category ID. Example:
{gallery}category:8{/gallery}
Display an IOS Reservations location images
Enter the location ID (lid). Example:
{gallery}location:23{/gallery}
Display an IOS Reservations hotel images
Enter the hotel ID (hid). Example:
{gallery}hotel:5{/gallery}
Display an IOS Eshop product images
Enter the product ID. Example:
{gallery}product:72{/gallery}
Bot configuration parameters
- width The default thumbnail width in pixels. If no width is set for a gallery this one will be used. Default value is 80.
- height The default thumbnail height in pixels. If no height is set for a gallery this one will be used. Default value is 80.
- autotitle If Yes, Easy Gallery will create automatically a title for IOS Eshop products, IOS Gallery categories and IOS Reservations hotels or locations. If you have entered a custom title using the title attribute then your custom title will be displayed instead.
- autolink If Yes, Easy Gallery will create automatically a link to the detailed page for IOS Eshop products, IOS Gallery categories and IOS Reservations hotels or locations.
- thumbgen Sets how thumbnails to be generated. Using PHP (slow to generate, fast to load - requires GD2 library) or by HTML resize (fast to generate, slow to load)
- maximages The maximum number of images per image gallery. Default value is 20.
- mootools Sets the load or not of Mootools. If you already load Mootools in your template select not to re-load it for the bot.
- slimbox Sets the load or not of Slimbox. If you already load Slimbox in your template select not to re-load it for the bot.
- ordering (version 1.7 or newer) Sets the ordering of the displayed images. Available options are by title, by filename, newest first, oldest first, randomly.
License and credits
Created by Ioannis Sannos - Is Open Source
License: Creative Commons 3.0 Share Alike
Copyright (c) 2008-2012 Is Open Source. All rights reserved.


