While testing the module, I thought that it could be possible to create a block that would display all the images contained in a gallery while viewing a specific image of the gallery.
If it was just possible to get the gallery ID through the node ID of the image, using arguments and relationships, we could list all the image of the same gallery, and even use ajax pager to browse very quickly to any image. This would equal Flickr's img browsing block.
But unfortunately, I could figure out which argument or relationship to use. I got very confused to see some node/gallery/gallery/ID everywhere and never got the block working.
Any idea on how to achieve this ?
Comments
Comment #1
jjjames CreditAttribution: jjjames commentedAlso interested in getting a strip of images to use for navigating through the gallery ala Flickr.
Thanks
Comment #2
wilson98 CreditAttribution: wilson98 commentedthis has been supported in current version. use the "Node Gallery Image: Galley Id" as arguments to filter the image display.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI tried using the argument you mentioned (you'll notice a typo 'Galley' instead of 'Gallery'), giving the argument the value 'Node ID from URL'. This only works when I'm viewing the Gallery node, it retrive the gallery ID, and lists the images contained in the gallery.. but what I want is different. When I'm viewing an image node, I want the view to list the other images contained in the same gallery.
Am I missing something ?
Comment #4
jjjames CreditAttribution: jjjames commentedViewing the adjacent images within the same gallery is what I'm lookin for too. Gonna watch this thread.
Comment #5
wilson98 CreditAttribution: wilson98 commentedit's not supported yet.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedFrom what I can imagine, the goal would be to be able to retrieve the gallery ID through the Node ID Argument.
Maybe something like :
Argument -> Node ID from URL
Relationship -> Gallery ID
Field -> Node Image (through relationship)
Comment #7
kmontyI know this is a little hacky, but you can achieve the flickr-esque navigator by overriding your theme_ functions that give you the next/previous links. I did this for a project I did with Node Gallery 1.x
Comment #8
jjjames CreditAttribution: jjjames commentedWould you mind sharing exactly how you did this?
thanks
Comment #9
kecinzer CreditAttribution: kecinzer commentedSubscribing.
Comment #10
dropchew CreditAttribution: dropchew commentedMaybe its good to have an function in the api that takes in a image nid and returns the gallery's nid, yeh?
Comment #11
Golem07 CreditAttribution: Golem07 commented+1 - such a feature is really needed in node gallery
Comment #12
lierbag CreditAttribution: lierbag commentedAgreed. This would be a really useful feature. I've been trying to modify the module to do this, but no success yet... I'm going to try kmonty's approach. To be continued....
Comment #13
kmontyComment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedSubscribe, I'm very interested on this too
Comment #15
jahmal CreditAttribution: jahmal commentedHi.
I have managed to create view with all images related to gallery you are currently in (Whilst on Node_Gallery_Image Node page)
Here are the steps:
- Create new View (block)
- As a field add : Node Gallery Image: Image
- As an argument add : Node Gallery Image: Galley Id
- Set : Action to take if argument is not present: Provide default argument
- set it to PHP code :
return node_gallery_gallery_to_arg(arg(1));
This works for me and we have nice thumbnails in the block showing images from the same gallery
Regards,
Rafal Jachimczyk
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks Rafal, I will try it.
Comment #17
dbeall CreditAttribution: dbeall commentedwould be good to add to the handbook.. but no luck here.
Maybe I missed something..
using- Node Gallery 6.x-2.0-alpha12, Views 6.x-2.8
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedWill version 3 allow us to do this kind of queries?
Comment #19
justintime CreditAttribution: justintime commentedIt should, and if it can, it will provide such a block out-of-the-box. I've actually made a lot of progress on 3.x as of late. Most of the big features are complete. The remaining big items before releasing an alpha are migrating settings (data migration is already done), and theming. I'll tag this issue and update it once I find the answer.
Comment #20
Anonymous (not verified) CreditAttribution: Anonymous commentedI'll wait impatiently for it ;)
Comment #21
zuzu83 CreditAttribution: zuzu83 commentedhttp://drupal.org/node/490352#comment-2525504 it's very well works!
Thanks
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedPlease, don't forget about this ;)
Comment #23
scroogie CreditAttribution: scroogie commentedThe views integration kind of allows this out of the box, at least on the gallery node. See the demopage for an example: http://ng3demo.sysadminsjourney.com/galleriffic/2468
You can of course create a block display for a gallery view. What is currently not in the module is a block that retrieves the whole gallery on the page of an image node. We discussed a little bit of this in #974228: NG Navigator Block
If you can elaborate what you need, and perhaps can contribute to the design (perhaps with a mockup), it would be very welcome.
Comment #24
Anonymous (not verified) CreditAttribution: Anonymous commentedHi, sorry for the delay in my reply,
I would like to display, in the picture node, other pictures from the same gallery on a (views) block. To make easier to jump from one picture to another.
Something similar to your comment #7 #974228: NG Navigator Block but displaying pictures with the same parent gallery id that the current picture.
Thank you guys, your doing a great issue-cleaning effort with Node Gallery ;)
Comment #25
justintime CreditAttribution: justintime commented@jmesam - this sounds pretty much like what I'm shooting for with a jcarousel add-on. Watch the issue queue/project home page for updates.
Comment #26
scroogie CreditAttribution: scroogie commentedWouldn't this just be a
in the block code?
Comment #27
Anonymous (not verified) CreditAttribution: Anonymous commentedI try to put scroogie's code on a block and I get these error:
Comment #28
scroogie CreditAttribution: scroogie commentedjmesam, no! That was only pseudo-code for justin! :D
Comment #29
Anonymous (not verified) CreditAttribution: Anonymous commentedOops :)
Comment #30
justintime CreditAttribution: justintime commented@jmesam - while not quite ready for a full release yet, I put up a demo of the jcarousel module I'm working on on the ng3demo site. You can preview it here: http://ng3demo.sysadminsjourney.com/node/2473
Is that along the lines of what you're looking for?
Comment #31
Anonymous (not verified) CreditAttribution: Anonymous commentedThat's exactly what I'm looking for :)
Thanks
Comment #32
jjjames CreditAttribution: jjjames commentedCool! When do you think this module will be ready for the public?
thanks
Comment #33
justintime CreditAttribution: justintime commented@jjjames - forgot to add that the "official" issue for the new module is #987910: node_gallery_jcarousel nearing completion - your answer is over there.
Comment #34
dddave CreditAttribution: dddave commentedEnjoy the jcarousel integration in NG3.