Somebody please, a simple yes or no would suffice, although some extra help is appreciated.

Simply said, I have 2 different types of 'gallery' views. I would like to set a different grouping for the both of them, but I haven't figured out how. I am quite sure it isn't really possible from the admin interface, Lightbox2 seems restricted to one type of grouping.

Why do I want different grouping? Well, 1 gallery view is mad up of nodes with one image field. So, grouping per fieldtype is perfect. The second gallery consists of nodes with 2 image fields (the idea is it will show before and after images). For the view that accompanies this node type I want the grouping to be set to the node id.

The way that Lightbox2 works now doesnt seem to allow this. I think this is a slight design flaw (though I don't mean any disrespect to the developers whatsoever, it is a great module). So what is my plan? I thought I could just do a simple template override for the view field, but this isn't as simple as I thought. With "$row" I have all the basic info I need, but getting Lightbox to do what I want is still very difficult. What I would like to do is to use this:

print theme('imagefield_image_imagecache_lightbox2', 'name_of_your_thumbnail_imagecache_preset', $field_name_of_your_cck_imagefield_field[0]['filepath'], $field_name_of_your_cck_imagefield_field[0], $node, $rel = 'lightbox');

BUT I don't understand what variables need to go in the theme function, since that snippet is for a node view, and not a view.... (I cannot put in $node from a view template). Hope that makes sence. I will continue investigating, but if someone could shed some light on this matter, I would really appreciate it.

Sincerely, Dago

Comments

stella’s picture

Category: support » feature

You could override the theme_imagefield_image_imagecache_lightbox2() function possibly. Or overwrite the lightbox2_imagefield_group_node_id variable using variable_set() depending on the view being displayed.

The current implementation needs to be improved, but unfortunately there's a lot more higher priority items ahead of this.

stella’s picture

Status: Active » Closed (won't fix)

I had a look at implementing this but couldn't figure out a way to get the view id information into that function. Perhaps for Drupal 7, with fields in core.

Berliner-dupe’s picture

Status: Closed (won't fix) » Active

Subscribing - have the same problem.

Is there new information available?