The attached patch will add previous/next links to images, thus allowing navigation inside a gallery. The custom_pagers module is used for this - this seems to be the easiest way to achieve this functionality, but unfortunately adds one more dependency to views_gallery.

CommentFileSizeAuthor
pagers.patch2.47 KBfwalch

Comments

karens’s picture

Status: Needs review » Fixed

Nice idea and easier than the other ways I was going to do this. I just altered it to not require the custom pager module, I don't want to add a dependency, but if the module is available it will use this.

Thanks!

jjjames’s picture

Hey cool gonna try it! How does your version work KarenS?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bleen’s picture

Status: Closed (fixed) » Fixed

Is this making its way into the module or not?

achernen’s picture

what should I do with this patch? sorry for possibly stupid question

bleen’s picture

what should I do with this patch? sorry for possibly stupid question

for the moment I would install the "custom pager" module (and set permissions for it) and then manually create a new pager using these settings:

+  $pager->title = 'Views gallery pager';
+  $pager->position = 'both';
+  $pager->view = 'gallery';
+  $pager->args = '[field_gallery-nid]';
+  $pager->node_type = views_gallery_image_type();

According to the comments above, they may or may not have already added this patch to the views_gallery module in which case you'd just need to have custom pager installed before installing views_gallery but I cant tell if this is getting in or not.

Hope this helps

achernen’s picture

hi,
thanks for help, however, I cannot make it work. No matter I do, it does not add anything, it stays the same.
In any case the image_gallery view seems to be for galleries, not for images inside a particular gallery. If I want to navigate inside the gallery (I mean when I have chose an image and want to see previous, next etc), this view cannot help me

bleen’s picture

@achernen ... I'm not sure why this isnt working for you, but I can tell you that the "image_gallery" view is necessary for the next/prev links. Even though you are looking at an individual photo the custom pager module needs to know where the next/prev links should take you. That's where the "image_gallery" view is used - to determine "what's next".

Make sense?

achernen’s picture

Ok, I found out what happened. I confused this module with another gallery module (which I have). So, I tried to use something not applicable to my situation. Sorry for mess
:) I guess the issue is fixed now

bleen’s picture

Status: Fixed » Closed (fixed)
nimzie’s picture

I have all of these modules installed and can't figure out how to get the prev/next links going. I've made a new gallery, it's got 10 pics in it. The normal gallery pager is there, but there are no back/next links in the node itself..
Thoughts / things I need to check out?

yannickoo’s picture

I haven't the pager too.