B
B
badimint2016-10-20 16:51:19
MODX
badimint, 2016-10-20 16:51:19

How to get album id in GalleryItem chunks?

Hello!
There is MODx Revo, it has a Gallery component.
Who knows how to get the album id in a chunk?
Out of the box, as I understand it, there is only a placeholder but that's not it
https://docs.modx.com/extras/revo/gallery/gallery....
You need it

<a href="" data-id=""></a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2016-10-20
@qork

In the Gallery snippet itself, as I understand it, it is impossible to display the album ID.
To do this, use other snippets, for example, GalleryAlbums in rowTpl there is a placeholder for the album ID.
https://docs.modx.com/extras/revo/gallery/gallery....
https://docs.modx.com/extras/revo/gallery/gallery....
You can get an ID for the GalleryItem snippet



In the chunkName chunk
At the output we get the album ID for the 12th picture from the gallery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question