in theme_emvideo_modal_generic(), the following line forces all videos rendered on a page to appear in the same lightbox slideshow:

  if ($options['modal'] == 'lightbox2') {
    $attributes['attributes']['rel'] = 'lightframe[videos|width:'. ($width + 16) .'; height:'. ($height + 16) .';]';
  }

namely, "lightframe[videos" forces the all the lightbox modals into the same grouping, even though the slides might belong to different nodes.

I debated filing this as a bug report, but maybe other people are happy with this behavior?
Anyway, I think emvideo should mimic lightbox2's "CCK display settings > Select Imagefield grouping in Views" setting, that allows admins to decide whether and how to group videos: e.g. no grouping, group by field name, group by node id, or some combination of those.

CommentFileSizeAuthor
#2 emvideo-no-grouping_1183832-2.patch748 bytesAaronBauman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stolzenhain’s picture

Agreed! I would also be happy with a simple non-UI solution, though.

As for grouping, no grouping name in the lightbox link should really be standard behaviour.

AaronBauman’s picture

Status: Active » Needs review
FileSize
748 bytes

Here's a patch to change the default behavior to no grouping.

Also, fwiw, there is a lightbox2 setting "Select Imagefield grouping in Views:" where an admin can select to group by field name, by node, or no grouping (admin/settings/lightbox2 > "CCK display settings").
Maybe this same setting can be generalized to apply to videos too?

AaronBauman’s picture

Version: 6.x-2.5 » 6.x-2.x-dev