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.
Comment | File | Size | Author |
---|---|---|---|
#2 | emvideo-no-grouping_1183832-2.patch | 748 bytes | AaronBauman |
Comments
Comment #1
Stolzenhain CreditAttribution: Stolzenhain commentedAgreed! 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.
Comment #2
AaronBaumanHere'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?
Comment #3
AaronBauman