Mini with Lightbox

Summary: Lightbox slideshow for the Mini gallery
Version: 20181115
Prerequisites: Mini version 20181115 or newer
Status: beta
Maintainer: Petko
Categories: Images, Uploads, Gallery, PHP55, PHP72
Users: (view? / edit)
Discussion: MiniLightbox-Talk?
License: CC-BY (lightbox.js, mini-lightbox.js), MIT (libraries)


Use the Mini gallery with Lightbox instead of Ultralightbox.

This recipe enables Lightbox for Mini. Lightbox is a slideshow similar to Ultralightbox, but has a slightly different look and feel and a few more configuration options. Lightbox is built on the Prototype library.

Lightbox was previously bundled with Mini, but from version 20110817, Mini comes with the Ultralightbox slideshow which is simpler and much smaller than Lightbox. The recipe is for users who prefer this package instead of the (new) default one.



You need a working Mini installation version 20110817 or newer. This recipe is a plugin for Mini.

  • Get mini-lightbox.zipΔ (alt. download:
  • Copy the folder "lb" to your pmwiki/pub directory.
  • Add to local/config.php these lines:
    $Mini['LbUrl'] = '$FarmPubDirUrl/lb';
    $Mini['LbFiles'] = array('lightbox-plus-jquery.min.js',
      'mini-lightbox.js', 'lightbox.min.css', 'mini-lightbox.css');


The recipe has the following parameters in config.php:

  • $Mini['EnableLightbox'] = 1; this variable works the same way as with Ultralightbox, see Mini. It can be 1, 2 or 3.


The Lightbox recipe works mostly like Ultralightbox (see Mini). Users with recent browsers will see a nice slideshow when they click on a thumbnail. Visitors with JavaScript disabled will see the large pictures in their browsers without any special effects.


The recipe requires Mini version 20181115 or newer.

Change log / Release notes

  • 20181115 update for Mini 20181115 and to Lightbox 2.10, note that it has switched from Prototype to jQuery and both the installation code changed and most files in the "lb" directory.
  • 20110824 distinct MiniLightboxOptions block for easier configuration.
  • 20110817 first release as a recipe split from the Mini distribution.

See also


This PmWiki recipe is written and maintained by Petko (5ko [snail] 5ko [period] fr). Lightbox [1] and its underlying libraries are written by a number of people. See the source files for authors and free software licenses.

  • If this recipe helps you or saves you time, you can help support its continued development by .


See discussion at MiniLightbox-Talk?

User notes? : 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.