Views CCK Lightbox2 Integration
ToddThomson - August 14, 2008 - 14:49
| Project: | Gallery Addon |
| Version: | 6.x-1.x-dev |
| Component: | Module: Gallery Content |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I think that you have started a module that would allow the reference of a gallery item to be added as a CCK field.
I like the use of gallery2 being integrated into a drupal site ( I think this is currently very clean and works well ). However, I would like to reference content from the gallery to use with CCK, Views, lightbox2 and g2Image (g2Image Lite! - gallery specific for this case) to create visual content (using gallery2 as a backend server).
I am willing to help develop this.

#1
Hi Todd!
Your vision aligns well with my own plans on how gallery integration should evolve :) Unfortunately I cant spend enough time to get this done within a few weeks (for a very rough description of my plans look at http://groups.drupal.org/node/10442). However, there is some progress behind the scenes and I did a lot of research how tighter integration should look like and how it can/should be implemented.
Best integration could in principle be achieved by not using GalleryEmbed class interface at all, but working with the G2 data/view model directly. However, I think that such a module would be far too difficult to maintain. We already have to track changes in Drupal core and the G2 interfaces, so that using the "low-level" methods directly appears not feasible. For that reason my current development is kind of a hybrid approach: it uses the GalleryEmbed API as much as possible (blocks, filter, user sync, etc.), but mirrors G2 items into Drupal nodes using G2.3 notifications and some GalleryView-KungFu to embed G2 UI widgets into Drupal pages directly.
If you are interested in helping out here, I will take time to write a more complete abstract about my ideas and how you could help (or even wrap up my existing code for collaboration).
Also G2Image is the key for a smooth workflow IMO and should therefore be improved for our needs. Kirk S. (author of G2Image) is working on a new version of G2Image taking some aspects of my feedback into account. But I guess it will take him some time to complete because he is busy with other stuff atm. I agree that creating a specialized version of G2Image for our purposes is probably more effective. Do you think you could work on that?
That module is called GalleryField and it is available as part of the GalleryAddon package. It does not yet support multiple values, but it should be completed in 1-2 weeks.
One last point, what is your background and skills in Drupal coding, PHP, JS and CSS? Where do you think you could help?
Cheers, Thilo
#2
Hey Thilo,
Sorry for the long delay! End of summer vacation!
After getting back from holidays, I've looked at different ways for the presentation, storing, handling of media data.
At this point I feel that for drupal the best way to do all this is with CCK, Views, Filefield, imageapi and imagecache.
I like your solution for certain situations, but there is a lot of overhead with using Gallery2 and the future direction of drupal is using CCK and Views.
Cheers, Todd