I have a view combining jCarousel and Shadowbox to display images. The views are embedded into nodes using insert_view. The images in each instance of a view are filtered by taxonomy selected by view arguments.
Up to here plain sailing, now I can't seem to find a way to group the individual images in each view into distinct galleries. Am I missing something?
Or perhaps a nice feature would be to create a custom gallery based on custom field type or taxonomy?
Cheers
Comments
Comment #1
manfer commentedI can't understand exactly what you mean.
Do you have any link to see an example of how it is working now to explain from that example the behaviour you wanted?
I'm not sure if I'm understanding that you have various views in a node and if you group images in galleries more images are grouped together than the ones you expected, because all are grouped together instead of just in different groups.
Comment #2
polskikrol commentedMay have a similar use case here.
(1) Have a view that is showing a content type where each node has multiple images.
(2) Grouping fields in the view based on the title of the content nodes.
Expecting that shadowbox would be enabled for each group individually. So, one node with 5 photos pops up from the view page single image with only 5 photos. Another node with 8 photos pops up from the view page single image with only 8 photos. Instead, shadowbox (a) seams to not work when grouping fields and (b) each single image from the view pops up shadowbox with all 13 photos.
Maybe going about this the wrong way, but if there is a way to implement this would be grateful for any ideas. Basically, the view has the first image from each node. When clicking on the image, I want shadowbox to open up the gallery with images only from that particular node, not all nodes showing up in the view.
Comment #3
polskikrol commentedI am using 7.x-4.0-beta4, not changing the version as I do not want to hijack the original issue posted. If I should open a separate case for my issue, please let me know.
Comment #4
manfer commented@polskikrol when you create a view and you use shadowbox as the formatter for an image field, in the configuration of shadowbox formatter you can configure how images must be grouped with the gallery attribute. The available options to choose are: none, gallery page, gallery field, gallery node.
none - Images are not grouped into galleries so when you click an image thumbnail a shadowbox is opened with only that image.
gallery page - Images are grouped into a gallery. All images with shadowbox formatter in current page with that attribute configured as gallery page will be grouped together. (This can group even images from various views together if they are shown for example in a listing of nodes containing each on a view).
gallery field - Images are grouped by together when they share same field.
gallery node - Images from same node are grouped together in a gallery.
For your use case "gallery node" seems a perfect match. I have to make an example to be sure but I think it is. I even I'm not sure if the compact attribute of shadowbox will work fine enough to group the thumbnails from each node without the need of using views field grouping feature.
About "gallery field" I think I should review that one. It is probably better to make two different cases, gallery field node, and gallery field page. Gallery field page is what is doing now, every image with shadowbox formatter from same field in same page will be grouped together. Adding the node restriction would group together images from both same field and same node.
I'm still not sure about @smuglr use case. Not sure if none of those fit his use case. He has images that are organized in some way with taxonomies. From there he is creating views that filter images by that taxonomy and then embedding that in nodes. It is possible none of the actual groping methods fits his needs. Maybe if I add some kind of "gallery views" grouping would work in his case, not sure, have to try.
Comment #5
polskikrol commentedGot it working as desired... here are some comments:
(1) View Update Preview does not work very well with the Shadowbox options, so you need to save the view and actually test it.
(2) Tweaked Multiple Field settings to have a 'null' for "Display __ values" and enabled 'compact' Shadowbox option.
Thanks for the assist here!