Group images as a tiled grid or slideshow.
Group images as a tiled grid or slideshow.
Last reviewed: May 30, 2023
Display a collection of images as a grid or slideshow that is optimized for user experience, accessibility and page performance on all screen sizes, regardless of the number of assets. The gallery adjusts to look good in wide or narrow placements.
The gallery displays images from a specified Assets folder or SmugMug gallery*. These images can be loaded as a grid or slideshow. In either mode, when the viewer clicks an image, a dialog box loads with that image as part of a slideshow.
* For SmugMug, an API is needed to pull in the desired gallery.
** For Assets order, see the Technical Restrictions below for more details.
When the page is published, be sure to check the published gallery or use View as Published to ensure performance is satisfactory.
The UBCMS optimizes images for best display on the user's device, but we recommend:
Sometimes the image order on a live page may not match what is shown in Author or the parent Assets folder. > Known Issue: Images Are Out of Order
The wrench icon provides access to change all settings in four tabs: Layout, Text, Colors, and Image.
You will then need to provide additional information.
If you choose Assets (DAM), you must already have a folder in Assets and reference its source here:
If you choose SmugMug, you must already have a SmugMug album, and an associated API key, and reference both here:
* You may be able to find the Album ID by viewing the gallery, then opening its source code (Ctrl-U) and searching the results for 'AlbumKey'.
Slide captions (and Alt text) are pulled from each image's Properties.
Gallery Limit - Set the maximum number to display. Default is 0 (no limit).
Starting Offset - Skip an initial number of images. Default is 0 (starts at first image).
Aggregate Gallery - When selected, the full screen mode will combine this gallery with other galleries on this page that have also been set as an Aggregate Gallery. (Adding or removing aggregate galleries requires a page refresh in Author to update the full screen display.)
Combine Limit and Offset to display a subset of a larger collection (e.g. images 3-7) or to segment a collection (e.g. one gallery as 0-7 then a second as 8-13).
Start view - Choose from:
If you select Grid, you can also select:
If you select Slideshow, you can also select:
Captions are displayed for each slide in Slideshow mode, and when an image is opened in the Grid mode. It is not possible to turn off the captions. For some browsers, they are also displayed as mouseover text.
For an Assets gallery, the UBCMS draws information from each asset's properties, following these rules:
For a SmugMug album, the UBCMS draws information from each image in the parent SmugMug album. (Be careful that the entire album has not been given the same description!) The caption will display the Description field, a blank line and then the Photographer's name (if provided).
For accessibility, captions are required, which are then read as Alt text by screen readers.
Alternative text ('Alt text') is a best practice for all your UBCMS images and is often required for accessibility so screen readers can tell visually disabled users what they are not seeing.
For photo galleries, the image captions also serve as Alt text, which must be manually provided at the source for each image.
Please provide either the Alt Text, or the Description, or both, because the two can be applied differently in some photo components. For the Gallery:
Best practice, always provide Alt text whenever an image is uploaded into Assets.
Authors are responsible for any third party content that is hosted or linked from their UBCMS pages.
This includes applications such as Formstack forms and Google Maps, that are displayed using their own component, as well as entries from UB's Calendar of Events, and external content hosted using HTML Snippet or External Embed.
Best practice: for Formstack forms, avoid using the date picker and the 'other' option in dropdowns.
Best practice: for the HTML Snippet and External Embed, always run an accessibility test (e.g. using a browser extension), check its behavior in mobile, and consider how it may impact page performance in general.
Best practice: if your code relies on a 'div' or iframe to house its content on your page, it must have an identifying label, often coded as a 'aria-label' or sometimes a 'title', that assistive technology can see. Formstack produces a title automatically, although it is poorly worded, but other applications tend to skip this requirement so it must be added manually on your end.
If you have concerns that external vendor content is not accessible, please contact UB's Web Accessibility officer.
SiteImprove may not be testing each of the slides individually, and may thus be missing any associated accessibility issues. We are working to mitigate this issue.
For accessibility, captions are required, which are then read as Alt text by screen readers.