Change book | Close bookmaker |
%IMAGE
tags with a div
element using the jqPhotoSwipe
css class.
%JQREQUIRE{"photoswipe"}% <div class="jqPhotoSwipe"> %IMAGE{"image1.png" size="200"}% %IMAGE{"image2.png" size="200"}% %IMAGE{"image3.png" size="200"}% %IMAGE{"image4.png" size="200"}% </div>As with other
JQ...Contrib
extensions the macro %JQREQUIRE{"photoswipe"}%
will load the required javascript assets into the page
including an initializer to process any thumbnails wrapped by a jqPhotoSwipe
element.
Note that ImageGalleryPlugin detects JQPhotoSwipeContrib being installed automatically and will then switch to this frontend (starting with version 7.10).
You type:
%IMAGEGALLERY%
You get (if installed):
You type:
%JQREQUIRE{"photoswipe"}% <div class="jqPhotoSwipe"> %IMAGE{"15008867125_b61960af01_h.jpg" size="95x95" crop="on"}% %IMAGE{"15008518202_c265dfa55f_h.jpg" size="95x95" crop="on"}% %IMAGE{"15008465772_d50c8f0531_h.jpg" size="95x95" crop="on"}% %IMAGE{"14985871946_24f47d4b53_h.jpg" size="95x95" crop="on"}% %IMAGE{"14985868676_b51baa4071_h.jpg" size="95x95" crop="on"}% </div>
You get (if installed):
Additional parameter to photoswipe might be specified using HTML5 data attributesm, such as in below example:
<div class="jqPhotoSwipe" data-allow-pan-to-next="false"> ... </div>See the full documentation of all options.
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab -> "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button. Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the search results. You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Name | Version | Description |
---|---|---|
Foswiki::Plugins::ImageGalleryPlugin | >=7.10 | Optional |
Foswiki::Plugins::ImagePlugin | >=7.20 | Optional |
18 Nov 2019 | allow "swiping" of a single element |
05 Mar 2018 | updated to latest photoswipe version |
24 Oct 2017 | cleaned up photoswipe template from unnecessary html comments |
02 Sep 2016 | fixed Config.spec typo; fixed javascript initializer; better usability navigating images in gallery |
30 May 2016 | initial release |
Author | Michael Daum |
Version | 1.10 |
Release | 18 Nov 2019 |
Description | |
Repository | https://github.com/foswiki/JQPhotoSwipeContrib |
Copyright | 2016-2019, Michael Daum http://michaeldaumconsulting.com |
License | GPL (GNU General Public License) |
Home | http://foswiki.org/Extensions/JQPhotoSwipeContrib |
Support | http://foswiki.org/Support/JQPhotoSwipeContrib |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
jpg | 14985868676_b51baa4071_h.jpg | manage | 330 K | 18 Nov 2019 - 13:16 | ProjectContributor | Photo: Michael Hull |
jpg | 14985871946_24f47d4b53_h.jpg | manage | 388 K | 18 Nov 2019 - 13:16 | ProjectContributor | Photo: Ales Krivec |
jpg | 15008465772_d50c8f0531_h.jpg | manage | 384 K | 18 Nov 2019 - 13:16 | ProjectContributor | Photo: Thomas Lefebvre |
jpg | 15008518202_c265dfa55f_h.jpg | manage | 679 K | 18 Nov 2019 - 13:16 | ProjectContributor | Photo: Folkert Gorter |
jpg | 15008867125_b61960af01_h.jpg | manage | 593 K | 18 Nov 2019 - 13:16 | ProjectContributor | Photo: Samuel Rohl |