Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
On my gallery pages such as this: "/gallery/mirage-album-release-party?page=4&titles=", the pager only shows previous/next links even though I have 4 pages of images. This is on the page GA takes you to after you edit the node.
I have the pager set to "Full" in GA settings.
thanks
Comments
Comment #1
jcmc CreditAttribution: jcmc commentedHello ericpai,
I am sure what you mean is the pager from the thumbnails view (gallery view).
The pager was programed a simple pager. Now exist more than one feature request regarding this issue.
I plan to add the D-Pager as an other option.
Regards
Juan Carlos
Comment #2
ericpai CreditAttribution: ericpai commentedHi Juan,
I'm trying to find where you are building the prev/next links but I'm having trouble.
I thought it might be in gallery_assist_load() ? I was going to try and build a pager for it.
I see that function theme_gallery_assist_pager() gets called but who is calling it for the display I need?
I found that it's in gallery_assist_lightboxes_display.inc gallery_assist_display().
Update: I was able to write a small function to display a full page for now until you get the official one going. It's just a hack to get me going for now. If anyone is interested I'll post it, but it's not pretty.
thanks
Comment #3
jcmc CreditAttribution: jcmc commentedsuper ericpai,
Please not hesitate to contribute, do not forget: We are within one of the largest most active open source CMS projects.
Regards
Juan Carlos
PS
The pager code you are looking for is in the file gallery_assist_display.inc, It is hard coded.
Comment #4
ericpai CreditAttribution: ericpai commentedHere is my quick and dirty hack for the pager:
Around line 260 of "sites/all/modules/gallery_assist_lightboxes/gallery_assist_lightboxes_display.inc"
Then added a function at the bottom of the file:
Comment #5
jcmc CreditAttribution: jcmc commentedHello ericpai,
I have take over your code and made some modifications according the Drupal style guide.
You can test the implemented pager functionality in version gallery_assist-6.x-1.19-beta1.tar.gz.
Thank and Regards
Juan Carlos
Comment #6
shwx CreditAttribution: shwx commentedI have one question, is this possible to duplicate next/prev link or #4 idea on the bottom of gallery page too???
Comment #7
jcmc CreditAttribution: jcmc commentedHello shwx,
you can achieve this at Administer › Site configuration › Gallery Assist › Assignment.
Change in the form group "Pager" the Position: to both.
Regards
Juan Carlos
Comment #8
jcmc CreditAttribution: jcmc commentedHello people,
I have not idea if my implementation works in your sites.
Can some body give me feedback?
Comment #9
shwx CreditAttribution: shwx commentedjcmc Thnx a lot :) !
Comment #10
jcmc CreditAttribution: jcmc commented;-)
Comment #11
powery CreditAttribution: powery commentedIt's not working on 6.x-1.19-beta2. I can see no numbers? Whats wrong?