tei / photoswipe
TYPO3 PhotoSwipe-Plugin for native image-enlargement
Installs: 1 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Language:JavaScript
Type:typo3-cms-extension
Requires
- php: ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3
- typo3/cms-backend: ^12.4 || ^13.2 || ^13.3 || ^13.4
- typo3/cms-core: ^12.4 || ^13.2 || ^13.3 || ^13.4
Replaces
- typo3-ter/photoswipe: 2.0.9
README
Extension key: photoswipe
Language: en
Description: Adds the photoswipe.com JavaScript plugin (version 5.4.2 https://github.com/dimsemenov/photoswipe) as default for image enlargement
Keywords: gallery, photoswipe, lightbox, layer, zoom
Copyright: 2024
Author: Tobias Eichelberger
Email: tobi.eichelberger@gmail.com
Licence: This document is published under the Open Publication License available from opencontent.org/openpub/ The content of this document is related to TYPO3, a GNU/GPL CMS/Framework available from www.typo3.org.
Administration
Installation
via ExtensionManager
- Go to the Extension Manager and install the extension
- Include the static template "PhotoSwipe (photoswipe)"
- Configure extension if required (see section below)
via Composer
- install the extension via composer: composer require tei/photoswipe
- Include the static template "PhotoSwipe (photoswipe)"
- Configure extension if required (see section below)
Configuration
You can overwrite all files in the Constant Editor.
Photoswipe in your HTML:
The default setting for initializing photoswipe is by TYPO3's default css-class "ce-gallery". Your HTML has to look like this:
<someHtmlEl class="your-wrapper-class">
[... code / parent nodes]
<figure>
<a href="big image" data-ispsw-img="1" data-pswp-width="800" data-pswp-height="500">
<img [opt: title='used as caption']/>
</a>
[opt: <figcaption>prefered as caption</figcaption>]
</figure>
[/... code / parent nodes]
</someHtmlEl>
Usage
Just use the regular "Enlarge on Click" checkbox in the backend. If you have more than one image, the extension will add arrows in the zoom-view.
Layer
After installing photoswipe, TYPO3 will offer you a new link-type "Layer". You can choose between pages (iFrame) and content elements (innerHTML).