Skip to content
2.4k

Lightbox ​

The gallery's lightbox is powered by PhotoSwipe. Configured under ipp.lightbox.

Example ​

Hide the download button inside the lightbox even though zip downloads are otherwise allowed:

json
{
  "ipp": {
    "lightbox": {
      "showDownload": false
    }
  }
}

showArrows ​

Type: bool · Default: true

Show the prev/next arrows on desktop. They appear when the user hovers the lightbox.

mobileArrows ​

Type: bool · Default: false

Show prev/next arrows on mobile (screens under 640px wide). Off by default, as visitors swipe instead.

showDownload ​

Type: bool · Default: true

Show a download button in the lightbox toolbar. Only takes effect when downloads are also allowed by allowDownload.

autoPlayVideos ​

Type: bool · Default: false

Automatically play videos when their slide opens or becomes active. If the browser blocks unmuted autoplay (e.g. when deep-linking straight to a video), playback falls back to muted.

options ​

Type: object

Custom PhotoSwipe options to override defaults (e.g. {"wheelToZoom": true}).

Released under the AGPL-3.0 licence.