Component/Enhanced gallery
From Lanius CMS Wiki
This component allows the administrator, the manager or the publisher to add/edit/delete gallery items. This will allow the sharing of photographs or images with the users of the site.
There are various gallery display mode, including a popup mode and the fancy looking thickbox mode, which uses transparencies.
Contents |
Parameters
Enhanced gallery parameters can be customized by accessing the menu item instance of the component. The default instance is available in the Menu > mainmenu > Gallery path.
The following parameters are available to the administrator:
- Description in gallery categories index: This parameter specifies the description in the gallery categories index
- Show single images in: This parameter specifies how single images should be shown, administrators can choose from the following:
- Inset: If this option is chosen then single images would be shown larger
- New window: If this option is chosen then single images would be shown in a new full window
- Popup: If this option is chosen then single images would be shown in a popup
- Thickbox: If this option is chosen then single images would open in a new thickbox box
- Number of category rows per page: This parameter specifies how many category rows should be in each page
- Number of image rows per page: This parameter specifies how many image rows should be in each page
- Number of images shown per row: This parameter specifies how many images there should be on each row of each page
- Send thumbnail of submitted images to administrator(s): This parameter specifies whether or not a thumbnail of each submitted image should be sent to the administrator(s) in the notification email
Automatically resizing submitted images
When submitting a new image, from either backend or frontend, you can choose to proportionally resize the image if one of the dimensions (width or height) is above a specified value. If dimensions are smaller than the specified value, they will not be resized.
Value of 0 disables the option.
Wizard
Sometimes you need to add a lot of items to your gallery category. There are some tools available by clicking the 'Wizard' button in the administrative backend page of the Enhanced Gallery component.
The 1st page of the wizard will present 3 options:
- Enter the new category name
- Select an existing category to add images to
- Select a directory with no category associated
Options 1 and 2 will lead you to a multiple file upload page; uploaded images will end up in the newly created category (if you specified it for option 1) or in the already existing category (if you chose a category for option 2).
By selecting option 3 (displayed only when there are directories in media/gallery without an associated category) you will instead have Lanius CMS automatically recognize image files in the chosen directory.

