<![CDATA[ Pagination with Gallery - My Forums]]> https://forums.modx.com/thread/?thread=97950 <![CDATA[Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529639
I know there are a few posts concerning getting pagination on a gallery album but I cannot, for the life of me, get it working on one site. I just have one simple gallery for a page and I want it paginated. I have this working on a website based on Revo 2.2.16 using Gallery 1.6.2 and getPage 1.2.4 and with the following code;

<ul id="gallery">
[[!getPage? &elementClass=`modChunk` &element=`gallery-wrapper` &limit=`16` &totalVar=`gallery.total`]]
</ul>
<div class="clear"></div>
<ul id="pagination">
[[!+page.nav]]
</ul><!--\#pagination -->


and

[[!Gallery? &album=`show2014` &limit=`[[+limit]]` &thumbWidth=`221` &thumbHeight=`144` &thumbTpl=`innerGal` &start=`[[+offset]]`]]


In the website it doesn't work, using Revo 2.3.3, Gallery 1.7.0 and getPage 1.2.4 and with the following code;

<ul class="popup-gallery">
[[!getPage? &elementClass=`modChunk` &element=`galleryWrapper` &limit=`15` &totalVar=`gallery.total`]]
	</ul>
<div class="pageNav">[[!+page.nav]]</div>
	</div>


and

[[!Gallery? &album=`[[*gallerySelect]]` &limit=`[[+limit]]` &thumbWidth=`221` &thumbHeight=`144` &thumbTpl=`galleryBlockTpl` &start=`[[+offset]]`]]


gallerySelect is just a template variable and the gallery show, just no output in the pageNav placeholder. Please has anyone got a clue what might be wrong? Has something changed in Gallery 1.7.0 that is messing this up?

Any help much appreciated, thanks smiley]]>
tobyyoto Aug 07, 2015, 08:45 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529639
<![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529840 ]]> tobyyoto Aug 11, 2015, 03:12 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529840 <![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529838 tobyyoto Aug 11, 2015, 02:53 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529838 <![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529817
[[!+page.nav]]


Like so

<div class="pageNav">[[!+page.nav]]</div>
    </div>


All very strange and quite frustrating! I actually upgraded another customer's site to Gallery 1.7.0 a few weeks back and then had to roll it back to an earlier version because of this same problem. Could it be a bug in Gallery itself do you think?]]>
tobyyoto Aug 10, 2015, 04:21 PM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529817
<![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529806
[[!+page.nav]]


do you probably have another getPage - call at the same page?]]>
Bruno17 Aug 10, 2015, 01:48 PM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529806
<![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529801 tobyyoto Aug 10, 2015, 10:51 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529801 <![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529800 tobyyoto Aug 10, 2015, 10:50 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529800 <![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529798
[[+limit]] and [[+offset]] and [[+gallery.total]] ?

and does it work, when you set the values for limit and offset directly?




]]>
Bruno17 Aug 10, 2015, 10:44 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529798
<![CDATA[Re: Pagination with Gallery]]> https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529790 tobyyoto Aug 10, 2015, 10:19 AM https://forums.modx.com/thread/97950/pagination-with-gallery#dis-post-529790