Testing PhotoGalleryPlugin
Some examples of the
PhotoGalleryPlugin in action.
Example 1
Explicitly select images.
%PHOTOGALLERY{ "IMG_1262.jpg,IMG_1265.jpg" %LAZY% }%
Produces:
Example 2
Select a range of images.
%PHOTOGALLERY{ "IMG_1265.jpg..IMG_1324.jpg" %LAZY% }%
Produces:
Example 3
Selecting an image (attachment) that does not exist.
%PHOTOGALLERY{ "doesnotexist" %LAZY% }%
Produces an error:
PhotoGalleryPlugin error: No attached images found in PhotoGalleryPluginLazyTest for 'doesnotexist'!
Example 4
A gallery with all the images (attachments) not already used in the the galleries above.
%PHOTOGALLERY{ remaining="on" %LAZY% }%
Produces:
Example 5
Using images (attachments) from another topic.
%PHOTOGALLERY{ topic="System.PhotoGalleryPlugin" %LAZY% }%
Produces:
Example 6
Showing a single, random image without decorations, floating to the right of a text.
%PHOTOGALLERY{ topic="System.PhotoGalleryPlugin" random="1" width="1" float="right" size="100" thumbcap="" %LAZY% }%
blablabla blabla...
<div style="clear: both;"></div>
Produces:
blablabla blabla blablabla blabla blablabla blabla blablabla blabla blablabla
blabla blablabla blabla blablablablabla blablabla blabla blablabla blabla
blablabla blabla blablabla blabla blablabla blabla blablabla blabla blablabla
blabla blablabla blabla blablabla blabla
Example 7
Select all images with a name that start with "notjepg".
%PHOTOGALLERY{ "/^notjpeg/" %LAZY% }%
Produces:
Example 7
%PHOTOGALLERY{ "IMG_1262.jpg,notjpeg_withmeta.png" lazy="off" }%
Produces:
Example 8
Hello
We can have a gallery initially hidden, for example in a tab. Switch to the "Gallery" tab to view it.
List of all Galleries
We can generate a list of all topics that use the
%PHOTOGALLERY%
macro in the
Sandbox web:
%SEARCH{ "%PHOTOGALLERY" web="Sandbox" type="literal" nonoise="on" format=" * [[$item][$item]]" }%
Produces: