Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Gallery Module - Pagination not working

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2109 Views
  • Anaya
    Avatar
    Community Member
    42 Posts

    Gallery Module - Pagination not working Link to this post

    Hi Guys,

    I have sucessfully installed gallery module, but pagination is not working at all.
    In URL I can see that start counter is incrementing but can not see actual content on page. The content on page 2 and on all other pages remains as same as first page.
    Am i missing something here??????
    Pls need your help!

    Regards
    Anaya...

  • Anaya
    Avatar
    Community Member
    42 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Hey Guys,

    Nobody replied to my post.
    I know there is similar ticket submitted.
    Clients has seen this gallery already, not good idea to change to new gallery module.
    Is there really no way to sort out this pagination for Gallery Page??

    Regards
    Anaya...

  • UncleCheese
    Avatar
    4085 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Have you got a link? It's kind of hard to troubleshoot something we can't see.

  • Anaya
    Avatar
    Community Member
    42 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Hey,

    I can do that...is there any way I can send you PM...
    Its just website related with school, do not think client would be happy to have an url posted here...So sorry..

    Regards
    Anaya

  • Nexus Rex
    Avatar
    Community Member
    8 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Did you find a solutions for this problem?

    My gallery shows up just fine, but clicking the images does nothing and the pagination links refresh the page with the proper query string added, but the view stays on the first page.

    http://www.deserttacticalarms.com/cms/dta-photo-video-media/

    Please help!

  • HanSolo
    Avatar
    Community Member
    83 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Hi I have the same problem since i upgraded to ss 2.3.4 anyone got a clue on how to solve this

    Joakim

  • julian_oz
    Avatar
    Community Member
    1 Post

    Re: Gallery Module - Pagination not working Link to this post

    In case this is useful to anyone.. To fix the get the pagination working you have to modify the function "paginationStart" in GalleryPage.php. Use the code below:

    function paginationStart() {
          //if($this->action == 'page' && is_numeric($this->urlParams['ID'])) return $this->urlParams['ID'];
    if( isset($_GET['start']) && is_numeric($_GET['start']) && (int)$_GET['start'] > 1) return (int)$_GET['start'];
    else return 0;
       }

    Cheers,
    Julian

  • netnerd85
    Avatar
    Community Member
    42 Posts

    Re: Gallery Module - Pagination not working Link to this post

    Thank you very much julian for posting the fix, works like a charm!

    2109 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.