D
D
D_drop2016-09-09 20:20:52
MODX
D_drop, 2016-09-09 20:20:52

Help with Gallary add-on for Modx Revo, how to remove albums from the gallery?

When you switch to an album, in addition to the photos of this album, all albums are displayed. How to cure it?
snippet call code:


[[!Gallery? &plugin=`slimbox` &slimboxLoadJQuery=`1` ]]
[[!GalleryAlbums? &rowTpl=`gallery` &containerTpl=`DemoGalleryAlbumTpl`]]

Album
9589d80a081843a3b98177b94e45057c.png
Screen Gallery Screen
4a093b00f7c34728ade5bc25cc3c6ae6.png

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sergey, 2016-09-12
@D_drop

1) Install the IF add-on (if it is not already installed)
2) Change the call:

[[!Gallery? &plugin=`slimbox` &slimboxLoadJQuery=`1`  &toPlaceholder=`Gallery` ]]
[[!GalleryAlbums? &rowTpl=`gallery` &containerTpl=`DemoGalleryAlbumTpl`  &toPlaceholder=`GalleryAlbums`]]
[[!If? &subject=`[[+Gallery]]` &operator=`isempty` &then=`
[[+GalleryAlbums]]
` &else=`
[[+Gallery]]
`]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question