Lightbox and Load More
Lightbox
The preview control in the overlay of each item (the Preview button in style 1, the plus icon in the other styles) opens the image in a lightbox over the page. All items of one module form one gallery, so visitors can move to the next image inside the lightbox. Fancybox shows the article title as the caption; Slimbox shows no caption.
Choose the lightbox under Lightboxes on the Module tab, in Choose Lightbox:
| Lightbox | Options |
|---|---|
| Slimbox (default) | Background opacity of the dark layer behind the image. |
| Fancybox | Fancybox Effects (Fade, Elastic or None) for opening and closing, Title in Fancybox (Float, Inside, Outside, Over or Disabled) and Background opacity. |
Background opacity is a slider from 0 to 100, 50 by default. Use a value from 10 to 99: in 6.0.1, 100 gives a light background and 1 to 9 are read as 10 to 90. The number next to the slider does not change while you drag it; save the module and open it again to see the saved value.
On phones and tablets, items added with Load More open the bare image instead of the lightbox in 6.0.1. Items that were on the page from the start use the lightbox.
Load More
With Ajax Loader on (the default), a button under the grid loads the next items without reloading the page. Each click adds Ajax Request items. The button disappears when all items are on the page.
| Option | Default | What it does |
|---|---|---|
| Ajax Loader | Yes | Show the Load More button. |
| Load More custom text | Load More | The button text. |
| Ajax Loader Button | #ffffff | The button colour. |
| Ajax Loader Button (Hover) | #e07700 | The button colour under the mouse. |
The text colour follows the button colour: grey on colours that start with #f (light colours), white on others.
Limits of Load More
- In 6.0.1 the button only works in Style 1 and Style 2. In styles 3, 4 and 5 it does not load anything. Use style 1 or 2, or set Ajax Loader to No and Count Items to the number of items to show.
- Use only one portfolio module with Load More per page. With two, the second module's button loads items of the first.
- If Joomla's cache is on in System > Global Configuration, set Caching on the module's Advanced tab to No caching. Otherwise Load More can receive the cached module instead of new items.
- With Random order, an item can show twice or be skipped.