10389 Posts in 2200 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 871 Views |
-
Flickr Module / Navigation buttons

15 January 2010 at 9:04am Last edited: 21 February 2010 5:32am
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
-
Re: Flickr Module / Navigation buttons

20 February 2010 at 10:02am
Was it a stupid question? You can say it if it was so. It really irritates me that I can't get it working.
-
Re: Flickr Module / Navigation buttons

20 February 2010 at 12:47pm
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.
-
Re: Flickr Module / Navigation buttons

16 February 2011 at 10:02am
Any update finding a solution to this?
| 871 Views | ||
|
Page:
1
|
Go to Top |


