I've gone over a ton of the existing issues and couldn't get any clarity on this. So consider this a request for documentation :)

Here's my details:

1. I have a content type "article" that contains a multi-value filefield "slideshow images" (which uses the media.module chooser)

2. Each article node is it's own slideshow because it's field is multi-value

3. I'm creating a View that shows multiple article nodes, and therefore multiple slideshows. I've setup the view using the lightbox trigger field using this method.

4. In the view I'm displaying my 'trigger fields' as a grid of images. Then in the "Grid" settings, I'm choosing to "Group by Title" (ie. the node title field)

5. So far so good...it gives me the display I want...however:

6. When I click the first image on the first node, it includes ALL images from the page in the slideshow (I only want the images from that single node)

7. So, I need to use the "lightbox group" settings in the lightbox trigger field, right? I have "group by node id and field" in the Lightbox 2 mutliple settings. However the "Automatic generated group" isn't working, so I figure I need to create a 'custom group' using the field below

8. I enter in a token [title] hoping it'll generate a custom group for each unique title...but that field doesn't accept tokens..which means no dynamic groupings.

How can I accomplish what I'm looking for? It seems I need a dynamically named lightbox group for each node, but I see no way to make that happen. Is the rest of my setup correct?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

willvincent’s picture

Status: Active » Needs review
FileSize
1.4 KB

Haven't tested it, but I believe this patch will let you use tokens in the custom group field.

Rob_Feature’s picture

Status: Needs review » Reviewed & tested by the community

You rock Will...works like a charm. Marking as reviewed and tested.

willvincent’s picture

Category: support » feature

Changing to feature request as the patch provides additional functionality.

genjohnson’s picture

This is exactly what I needed and it works great. Thanks!

Rob_Feature’s picture

Title: How To Group in Views » Patch to Group using Tokens in Views

Changing title so it reflects what we're actually dealing with here.

Rob_Feature’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Marking this to be ported. A simple patch that gives REALLY needed functionality.