Hi
First of all thanks for the wonderful module which providing us with great galleries for our customers. Besides all the good features the module already has, i'm missing one that is, in my eyes, quite important: Navigation links on image view.
I'm quite good at writing PHP myself but i first wanted to contact the module developers to ask whether they have planned this feature or not. I'm using lightbox for viewing the images in a gallery, but for commenting, users open the image nodes. From there, they always have to go back to the gallery overview for the next picture. I think it would be very useful when they had a direkt link to the previous or next image on the node view page.
Regards,
Peter.
Comments
Comment #1
Brian@brianpuccio.net commentedComment #2
Brian@brianpuccio.net commentedPlease see http://drupal.org/node/31390
Comment #3
psiska commentedHi
Thanks for the link. I actually was able to solve this by using the theme functions:
This works for me.
Regards,
Peter.
Comment #4
underpressure commentedHi,
Where would I have to put this to try it out on my site?
Comment #5
psiska commentedPut it into your template.php and change the function name accordingly.
E.g. when your theme's name is "mytheme", you have to change the function to "mytheme_image_body($node, $size)".
You also can change and extend the ouput variable, i just used the text "Previous" and "Next" without any html tags, my final version has a list in it for example:
Comment #6
underpressure commentedWorks great for me just need to tweak the CSS and I'm good.
Thanks
Now how do we get this into the gallery.module?
Comment #7
psiska commentedThat's the whole point of a theme function - you don't need to get it into the gallery module, but it of course would be nice if the maintainers put in a navigation for image nodes by default.
Comment #8
yngens commentedhi,
does this one work with pictures put in multiple taxonomies?
Comment #9
underpressure commentedI'm using it go to: www.ravalonline.com and visit the gallery to see it in action on my sight.
Comment #10
gilbertdelyon commentedHi yngens,
I justed tested the theme function suggested by psiska http://drupal.org/node/181021#comment-611769 and it works well, but NOT with multiple taxonomy albums.
I am hopelessly looking for how to get "previous/next" buttons in multiple taxonomy albums. Did you find a way on your side. (Even in Acidfree it doesn't work)
Please let me know if you read this post.
Comment #11
yngens commentedhi gilbertdelyon,
could you please take a look at http://drupal.org/node/192020 and second my call.
Comment #12
underpressure commentedPsiska I need you help,
I've used thsi for sometime not works flawlessly however, now I want to align the links in the center of the table.
How can I wrap the links in a div tag so I may align the liks in the center via CSS?
Comment #13
psiska commentedYou have to alter this and / or the CSS to your needs. You could replace the lis with divs or similar.
Comment #14
underpressure commentedHere the thing, I'm aware you have to either alter that or the CSS but I don't know what to use.
If you give both there own div tags like below you will be able to center the links only when viewing the first and last image.
If you use one div for everything like below you will only be able to center the links when you are view every other image except the first or last one.
So the question is, how do you wrap what ever your output will be in a single tag that can be centered?
is there a way to use print to do this and if so what would that be, anyone?
Comment #15
xiffy commentedDon't know if you still want this, but it should be failty easy to open and close the div's just by adding some else statements like this:
Comment #16
underpressure commentedthis is what I'm using, had a friend who speaks PHP help me out, but thanks you for taking the time to post.