firebot6 Reply #1, 7 months, 3 weeks ago
Running Modx Evo 1.0.5, and Ditto 2.1.0
I'm trying to help someone with a gallery they've setup with Ditto. The simplest solution would be if there is a way to make the ditto_iteration call be consecutive across pages.
For example, there are four elements per page on the gallery. So the iterations are 0-3 on the first page, and 0-3 on the second page. Is there a way to make it 0-3 on the first page, and then 4-7 on the second page and so on?
I know in the documentation ditto_iteration specifically says "within current page." Though I was hoping there may be a way to modify it.
Here is what the gallery code looks like. I need the numbers to be consecutive so that when a user clicks the link it brings them to the correct gallery page.
I'm not sure if this was the best solution for a gallery, but since most of the work is already done besides this small problem, I thought I would try to salvage it.
I appreciate any help.
I'm trying to help someone with a gallery they've setup with Ditto. The simplest solution would be if there is a way to make the ditto_iteration call be consecutive across pages.
For example, there are four elements per page on the gallery. So the iterations are 0-3 on the first page, and 0-3 on the second page. Is there a way to make it 0-3 on the first page, and then 4-7 on the second page and so on?
I know in the documentation ditto_iteration specifically says "within current page." Though I was hoping there may be a way to modify it.
Here is what the gallery code looks like. I need the numbers to be consecutive so that when a user clicks the link it brings them to the correct gallery page.
<li> <a href="[~[+id+]~]?gallery_start=[+ditto_iteration+]"><img src="[+patient_image1+]" width="291" class="thumbnail" title="[+pagetitle+]" alt="[+pagetitle+]" /></a> <p style="width:291px;">[+pagetitle+]</p> </li>
I'm not sure if this was the best solution for a gallery, but since most of the work is already done besides this small problem, I thought I would try to salvage it.
I appreciate any help.
KP