We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50538
    • 8 Posts
    Hey, I want to make pagination for my albums list using Gallery. Trying to do it with getPage. For photos inside album all works perfect:

    [[!getPage?
            &element=`Gallery`
            &limit=`8`
            &album=`portfolio`
            &totalVar=`gallery.total`
            &thumbWidth=`180`
            &thumbHeight=`150`
            &containerTpl=`NewGalleryAlbumTpl`
            &thumbTpl=`NewGalItemThumb`
            &cache=`0`
            &cache_expires=`0`
            &pageNavVar=`page.nav`
        ]]
    <div class="system-nav-orange">
    <span class="pages">Page [[+page]] from [[+pageCount]]</span>
    <ul class="pager">
    [[!+page.nav]]
    </ul></div>
    <div class="clear"></div>


    but for albums pagination shows, but doesn't work:

        [[!getPage?
            &element=`galleryalbums` 
            &rowTpl=`rowTpl`  
            &pageNavVar=`page.nav` 
            &limit=`1`]]
    <div class="system-nav-orange">
    <span class="pages">Page [[+page]] from [[+pageCount]]</span>
    <ul class="pager">
    [[!+page.nav]]
    </ul></div>
    <div class="clear"></div>


    What am I doing wrong? [ed. note: cove3010 last edited this post 10 years, 3 months ago.]