[[+content_image]]
A
A
Artem Kiryanov2020-11-01 16:34:52
MODX
Artem Kiryanov, 2020-11-01 16:34:52

How to display certain albums in modx?

I export albums using this design.

[[!GalleryAlbums?
    &thumbWidth = `230`
    &thumbHeight = `230`
    &toPlaceholder=`GalleryAlbums`
    &limit=`0`
    &albumCoverSort=`rank`
    &prominentOnly=`1`
    &rowTpl=`galAlbumRowTpl`
]]
[[!Gallery?
    &thumbWidth = `230`
    &thumbHeight = `230`
    &linkToImage = `1`
    &toPlaceholder=`Gallery`
    &checkForRequestTagVar=`1`
    &useCss=`0`
    &containerTpl=`GalleryAlbumTpl`
    &thumbTpl=`galItemThumb`
    
]]
    
<ul class="galleries">
[[!If? 
&subject=`[[+Gallery]]` 
&operator=`isempty` 
&then=`[[+GalleryAlbums]]`
]]
</ul>
[[+Gallery]]


How can I display only certain album id's?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexey Golyagin, 2020-11-24
@hacker342

&album=`MyPhoto` where MyPhoto is the name of the album, in my opinion it will work if you specify its id instead of the album name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question