We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44606
    • 8 Posts
    Hello all!

    I've got an gallery made with the add-ons Gallery en PrettyGallery.
    Now I would like to make a new page every 20 photo's.
    I did manage to get the first 20 with getPage and I did manage to get the navigation.
    But if I click on the second page the same pictures are showed as showed on the first page although the url changes.

    My snippet call:
    <div class="navigationDiv">
    <ul class="navigation">[[+page.nav]]</ul>
    </div>
    
    [[!getPage?
    &elementClass=`modSnippet`
    &element=`Gallery`
    &album=`[[*prettyGalleryAlbum]]`
    &thumbTpl=`prettyGalleryImageTpl`
    &thumbWidth=`[[*prettyThumbnailWidth]]`
    &thumbHeight=`[[*prettyThumbnailHeight]]`
    &useCss=`0`
    &limit=`5`
    &totalVar=`gallery.total`
    ]]


    Can somebody tell me what I'm doing wrong?

    Greetings,
    Johman10

    This question has been answered by johman10. See the first response.

    [ed. note: johman10 last edited this post 13 years, 1 month ago.]
    • discuss.answer
      • 44606
      • 8 Posts
      I found a solution to the problem.

      I added
      $properties['start'] = $properties['offset'];

      to the getPage snippet, and it did the job for me.