Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Flickr Module / Navigation buttons

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1034 Views
  • dconel
    Avatar
    Community Member
    21 Posts

    Flickr Module / Navigation buttons Link to this post

    Much people seems missing the "next" en the "previous" buttons in the flickrmodule. Many people where asking for help but is there really nobody with an answer?

    I think the module is kind of 'useless' without the buttons. I've got thousands of picture's to show and some navigation buttons will make it a lot easy er for the visitor.

    I think we will help al lot of people by fixing this problem

  • dconel
    Avatar
    Community Member
    21 Posts

    Re: Flickr Module / Navigation buttons Link to this post

    Was it a stupid question? You can say it if it was so. It really irritates me that I can't get it working.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Flickr Module / Navigation buttons Link to this post

    No, wasn't a stupid question at all. Not many people on the dev team actual uses the module so bugs like this are often not looked at. The file that I believe you would need to edit is the Paginate function in FlickrService file - http://open.silverstripe.org/browser/modules/flickrservice/trunk/code/FlickrService.php (FYI this does it a really bad way so don't learn anything from looking at the code) which returns the html for the pagination.

    Looking at that code quickly I see the code for prev / next is in that file but I see it refers to a $current_page variable which doesn't look to ever to set. You might want to debug lines 212 in FlickrService.php till line 238 to see what if anything is wrong. Try Debug::show($currentPage); Debug::show($last_page) etc to see what variables aren't being set and why the buttons aren't showing. Since it looks like I've been assigned the module I'll try it out and see if it works for me and what the solution is.

  • Mohammed
    Avatar
    Community Member
    25 Posts

    Re: Flickr Module / Navigation buttons Link to this post

    Any update finding a solution to this?

    1034 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.