This looks like a very promising alternative for implementing an image gallery.

Now that imagecache and imagefield is already ported to D6, what is the status of this module?

Thanks for sharing :)

Comments

eclipsegc’s picture

Once 2.0 is final I'll be working on the D6 version of this module. There will be some pretty significant changes, and hopefully some gains as well. I don't promise it will happen quickly but it WILL happen.

Eclipse

wuf31’s picture

Status: Active » Postponed

ok, thanks for the clear reply.

duntuk’s picture

subscribing

zilla’s picture

subscribing...this is outstanding...

Flying Drupalist’s picture

subscribe :P

wintervanilla’s picture

subscribe -- excited for this!

fm’s picture

This looks like a great module. I wish it were available in Drupal 6.x.

Subscribing.

zilla’s picture

btw, will this interact at all with the new inline api idea via the inline module? looks like a whole buncha image related stuff is going to merge over the coming year (inline for imagefield and image combined, etc)....

henrijs.seso’s picture

+1

level09’s picture

it would be nice if this module uses the original lightbox module, instead of its own lightbox.

Subscribing

hribu’s picture

Subscribing.

zilla’s picture

hey, this is random, but i'm achieving a similar desired effect right now without this module sorta by accident - the acquia marina theme has a set of controls in blocks to prevent overflows and line up and float items and all of that...by using imagefield cck, i simply put the block for the images in the right sidebar, set the field as hidden in node display, and voila - a beautiful sidebar of photos for a 'story' etc comes up on right side of my page, or in lower section, or in header, and they automically align and float (very useful for horizontal!!!) and get wrapped in block elements (eg white nifty with border on right side) and of course, the block can then be lightbox enabled, so produces the slideshow, image gallery or whatever...just recording here for posterity, sorry if this is way off topic!

ajayg’s picture

@zilla,
Would you be able to share a demo site as it was not clear to me?

zilla’s picture

StatusFileSize
new109.61 KB

my site is offline, but if you try this, you'll see exactly what i mean - use cck imagefield, display hidden in node but put the block for the cck in the same content type (side or bottom, whatever) and voila, they're aligned and well positioned - very nice effect - only problem is when in content bottom they go below comments so i need to screw around with that a bit more to move 'content bottom' above comments but without screwing up right side column positioning (afraid it will push everything down and screw it up so instead for now keeping on right sidebar...

attached screenshot for you though

the main (big image) is one imagecache preset set to display in the node - those little pics on right are from 'additional pics' (an unlimited imagefield type) and set to hidden on node BUT the cck block for that field is in sidebar last (i was screwing around with local.css,that's why they're all aligned left right now, but i'll be dinging that shortly ;)

best part is they still fully respect lightbox settings AND only appear if there are pictures in there - seems to solve most of my problem because i haven't yet encountered users putting up five million photos...

also found a 'content templates' solution to this as well for putting below content in rows - but it uses a table which is tedious...

radj’s picture

subscribing...

ztyx’s picture

+1
subscribing

Babalu’s picture

subscribing

zilla’s picture

any update as of late november? it seems that views and cck are ready to roll, and as a result imagefield is quite stable right now (along with imagecache)

any insights appreciated and welcome, and i'm more than eager to test and report back any/all issues on a dev release (site is pre-production for at least another month or so)

radj’s picture

I've been using imagefield (6.x-3.x-dev) for drupal 6 for almost a month and it's working great, no problems so far.

zilla’s picture

currently doing crapola horizontal (after much struggling!) using some code discussed at imagefield module support - would love to know if you have any ideas about how to simulate the layout of imagefield gallery (table look, nice even spacing when using imagecahce etc) - post at: http://drupal.org/node/337651

eclipsegc’s picture

So, it's probably worth posting on this at this point.

As most of you have noticed, time has not lent itself toward getting this project done recently, and probably will not until mid-January to early-February. As such, I'm going to share the intent and direction so that those of you who'd like a manual fix for this right now can make use of it.

Views can achieve all the things that imagefield gallery does (and much more). As such it's my intent in D6 to build a views based module to have this same set of functionality. This is just an argumented view that shows on a given node (type) and shows the images of that node. Pretty easy to accomplish really, IFG for drupal 6 will just be an extension of that... hopefully more easily managed/setup.

That should get most of you where you need to go.

Eclipse

Flying Drupalist’s picture

Hi EclipseGc, isn't the main appeal of this gallery that it promises to be a node based gallery rather than a term based as you would be forced to do with views? Though I understand it's not difficult to put together a node reference type for a gallery, it still has some usability issues?

Anyway I'm really anticipating this module.

ajayg’s picture

Another appeal for me with this module is each image is not NOT node but associated with a node. So it is much lightweight. I am afraid if we use views won't it make it more heavy since each image would be a node now.

zilla’s picture

@eclipse - thanks, was actually wondering about using 'grid' view in bonus pack to achieve this sort of effect, and also realized that with imagecache actions, one can put nice borders around the imagefields and so on to simulate a gallery...

in fact, i've achieved a sort of desired effect with a simple snippet of css in case folks want to try this out:

field-field-pics div{
display: inline;
overflow: hidden;
padding: .5em;
}

....simply replace "pics" with whatever you've called your field under "manage fields" for the content type - in my case, i use field_pics on several content types in which i want these imagefields to appear in horizontal rows instead of stacks (vertical)...but do be aware that this styling will not work for content types in which the images appear in a 'fieldgroup' tab (via script) - not sure how to massage code for that particular element!

not a total solution, but avoids need to do this with views as an attached view or anything of that sort, and allows for additional styling options, integration with lightbox etc...here's a (crappy) screenshot of what the layout result looks like, though be aware that this is *before* i set imagecache to resize them all to the same size! http://cdn1.drupal.org/files/issues/screen-1_12.jpg

mandclu’s picture

another subscriber

eclipsegc’s picture

ok, so I was prompted to post here again as it seems not everyone is understanding what I'm saying, so we'll try this one more time and see if we can get some more grokage.

Views is incredibly powerful in D6. As such we can do some pretty cool things with it. Currently imagefield_gallery(IFG) in D5 builds a gallery from the images you have on a single node (it can do other things, but that's the basic basic). Views2 has the ability to emulate this completely (views1 did as well and had I understood that at the time, this would already be a views based solution). With that in mind, the D6 version of IFG will be views based, allowing us to still have a single node with many images, or a gallery of nodes. Either will work just fine. (we can even do both)

So fear not, much of the same functionality you're used to will make its way across, we'll just be views based instead of being something manually built.

I hope this clears up the confusion.

Eclipse

zilla’s picture

yup! thanks eclipse - just hope there's a bit of documentation or a video kinda walkthru to make it easy for people to switch over!

spython’s picture

I found a way to replicate imagefield_gallery functionality - show multiple thumbnails inside a node, not using views, and add lightbox to them.
First, install imagefield and lightbox and all their needed modules (imagecache, ImageAPI..)
Then add a new image field to your content type in cck. Set the visibility to 'hidden' in "display fields" if you don't use contemplate.
Define your presets in imagecache, one for the thumbnails and one for the image that will be shown in the lightbox.
Then add the following code inside your node-your_node_type.tpl file in your theme directory.

         // the class is the same for all img tags, so we can declare it out of the loop
    $thumbs_class['attributes']['class'] = 'gallery-thumbs';
        foreach((array)$node->field_name_of_your_cck_imagefield_field as $item) {
            // construct the path to the lightbox image using a function from the imagecache module
            // this creates valid URLs dynamically, so your code will still work if you move your files directory
            $lightbox_preset = 'name_of_your_imagecach_preset'; //the name of the imagecache preset to display in the lightbox
            $lightbox_path = imagecache_create_url($lightbox_preset, $item['filepath'] );
            $imagecache_image = theme('imagecache', 'name_of_your_thumbnail_imagecache_preset', $item['filepath'], $alt = 'gallery item', $title, $thumbs_class['attributes']);
            // Creating a custom title on hover and caption in the lightbox. Create some custom alt tags too if you like
            // Use check_plain to avoid XSS.
            $caption = check_plain($item['data']['description']);
            $title = check_plain($item['title']);
            // finally, let's put it all together
            print '<a class="gallery-thumbs" title="'.$caption.'" rel="lightbox[photo_gallery]" alt=" " href="'.$lightbox_path.'">'. $imagecache_image .'</a>';
        }
    

Don't forget to change the names of the imagecache presets and the form field to your names.
I found the code here http://drupal.org/node/274487 and changed it a bit to show image description under every image.
Then add this to your css file for styling

.gallery-thumbs img{
 border:1px solid #AAAAAA;
 padding:0.7em;
 margin:0.7em;
}

It should work now.
I've done it in an hour, so maybe there is a better way to do it, perhaps using contemplate.

nevergone’s picture

Hey,
What about porting and when we can try the version under Drupal 6?

Thanks! :)

watbe’s picture

subscribing...

Zarevac’s picture

Subscribing

alphex’s picture

Subscribing.

enxox’s picture

subscribing

msabnis’s picture

I achieved this with Views2. If you set up your view for a single node using arguments,
you can use the Grid formatting for the imagefield field. Damn, even the pager works for it.

msabnis’s picture

Heres the export of the sample view:

$view = new view;
$view->name = 'test';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'field_memento_images_fid' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'imagefield__lightshow2__thumb__big',
'multiple' => array(
'group' => 0,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_memento_images_fid',
'table' => 'node_data_field_memento_images',
'field' => 'field_memento_images_fid',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'title' => array(
'default_action' => 'empty',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 0,
'limit' => '0',
'case' => 'none',
'path_case' => 'none',
'transform_dash' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'memento' => 0,
'page' => 0,
'story' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('items_per_page', 2);
$handler->override_option('use_pager', 'mini');
$handler->override_option('distinct', 1);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
'columns' => '4',
'alignment' => 'horizontal',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'test');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));

bcobin’s picture

Thanks to spython (#28) - this is a great solution and very smartly done. I would just love to be able to add captions under the thumbs, which is (to me, anyway) more complicated than it might seem at first glance.

Thank you so much!

bnice5000’s picture

+1

eclipsegc’s picture

This is exactly where IFG will be heading when I do the D6 upgrade. Views is our future. Been saying it for a while. Now I just need time to do it. :-)

Carlos Miranda Levy’s picture

subscribing

portait’s picture

This could be a suggestion of a perfectly upload process.
http://i41.tinypic.com/2jfdndl.png

doomed’s picture

Do you mind posting a proper screenshot ?

Fullscreen or full window. Dont crop it.

Thanks.

avolve’s picture

As someone who set up a D5 site using this — http://bike.veganarky.net/ — I also look forward to the release of the D6 version...

Carlos Miranda Levy’s picture

subscribing

Carlos Miranda Levy’s picture

regarding #14 above...

"put the block for the cck"?
My Imagefield module does not generate any block, nor does cck, as far as I can tell.
Am I missing something?

ManyNancy’s picture

I don't see how it's possible to use views. Views does not have a latest node field for terms. It's fine if your gallery consists only of single level terms, but for anything hierarchical views simply do not work.

scroogie’s picture

You need to use an additional module for the hierarchy, e.g. nodereference or Node Hierarchy (http://drupal.org/project/nodehierarchy).

dquakenbush’s picture

subscribing

DenRaf’s picture

Status: Postponed » Needs review
StatusFileSize
new34.41 KB

I have created a patch for the module to work on Drupal6.

Please test.

spydmobile’s picture

nice Cant wait till its rolled into a release!

gugki’s picture

I just tested the patch for D6 and it seems to work.
Nevertheless, I does not provide me anything to select in the gallery type settings -> just "No Gallery".

I've not used the D5 version, so no clue how to add Gallery types...

gugki’s picture

StatusFileSize
new20.52 KB

here's a screenshot of what I mean

DenRaf’s picture

You have to enable Lightbox2 ImageField Gallery and/or Scrollbox ImageField Gallery. With that select you can choose which one to use for that field.

bbibs’s picture

Hey !

Sorry for my stupid question but someone can help me to install this patch for D6 (#48) ?

Do I have to copy it somewhere ?

Many thanks !

scroogie’s picture

I suggest you have a look at http://drupal.org/project/views_gallery

eclipsegc’s picture

So, since there are a lot of subscriptions to this, I thought I'd make mention that the D6 version of this has been started, and it is currently being developed on github. You can keep up with my alphas by visiting http://features.worxco.com/node/6

This is COMPLETELY unsupported, and is subject to significant changes still. But I wanted to provide it all the same since I know there is a significant interest.

Eclipse

PS: The feature server should keep you up-to-date with newest versions just like drupal.org would, so if you install from the posted link (instead of the git repository) it should notify you of new releases.

summit’s picture

Subscribing, greetings, Martijn

summit’s picture

Hi, Can somebody post a .rar or .zip file of imagefield gallery Drupal 6?
Thanks a lot in advance!
greetings,
Martijn