Hi, this is my proof of concept version for Drupal 7 of Views Gallery. It is not a migration, it does not support migration from D6 or older version. It's a version from scratch ! I recommand because it's a proof of concept and very basic version to test it before on a test site and it is NOT READY FOR PRODUCTION SITE ! ;o)

The features available are very basic. A menu in primary menu for all the latest gallery, a block to display the latest, adding gallery, adding image and that's it. There is a 2 views who can be customize for your need and Display Suite is use to generate the display.

I use these versions of modules for Drupal 7.

  • Drupal 7
  • Chaos tool suite 7.x-1.0-alpha4
  • Colorbox 7.x-1.0-beta4
  • Display suite 7.x-1.1
  • Eva 7.x-1.x-dev (2011-May-11)
  • Features 7.x-1.0-beta2
  • Node Reference URL Widget 7.x-1.11
  • References 7.x-2.0-beta3
  • Token 7.x-1.0-beta2
  • Views 7.x-3.0-beta3

There is on bug I notice, the deletion of the content type after removing the module. This is a know bug and it's from Features module.

Comments, ideas, tests and others are welcome.

Comments

geerlingguy’s picture

Eeks! That's an awful lot of dependencies...

I think it'd be best if we can keep dependencies to a minimum:

  • CCK (in core)
  • Views
  • Views Attach
  • Nodereference URL
  • Filefield (in core)
  • Imagefield (in core)
  • ImageAPI (in core)
  • Imagecache (in core)
  • Token
  • Custom Pagers

One of the huge reasons it's taken a while to get Views Gallery ported from D6 is because there were *so many* dependencies. I think that minimizing the number of dependencies would be extremely advantageous to the continuity of this project.

We could then make a couple more optional dependencies (like Colorbox, which simply adds a nice touch to image display).

Also, it might be best to keep discussion over in #651114: Drupal 7 version of Views Gallery?.

sw3b’s picture

The reason for the new post was suggestion from KarenS, the current maintener of the project ! To create comment and reaction on this exemple of code.

I know there is lot of dependencies but there is a reason behind each of those. I base my version of what was made in D6 who has all those dependencies :
Content (Core D7)
Custom Pagers
Features
FileField (Core D7)
ImageAPI (Core D7)
ImageCache (Core D7)
ImageField (Core D7)
Node Reference
Node Reference URL Widget
Option Widgets
Spaces
Strongarm
Token
Views (Core D7)
Views attach
Views Slideshow
Text
Chaos tools

By the way Views Attach as been replace by EVA. Also because of a strange relation with EVA and the default display system (The order is not save correctly when exporting) I was force to use Display Suite. It handle better the display when exporting with Features. The only dependecies who is not necessary for now is Colorbox.

I think for those who want to start something it is a good start.
Thanks for the comments.

karens’s picture

I'm not sure about the new display suite dependency, the D6 version doesn't have that and it may or may not be compatible with other modules that might be in use. The other dependencies are more general, things that are often used everywhere.

If there is a problem exporting something created by EVA I would rather try to figure out what fix is needed and get EVA patched.

sw3b’s picture

I agree with you KarenS, the main problem without EVA is this one. With the views and EVA you have 2 fields in the display section of the content type gallery. There is on for the teaser and one for the full node, like Views Attach except Views Attach you choose what type of display to assign it.
So with the field you go to the display of gallery and hide teaser at the fulle node and hide fulle node at the teaser section. That's working great. It's when you do the export with feature you lost the weight order so when you re-import this version you will have both of EVA views display.
I'm not fully capable in programmation and if someone could help with how to specified the order or how to hide a specific field, it could be nice and we could get rid of Display Suite for sure.

sw3b’s picture

StatusFileSize
new5.6 KB

I remove Display Suite and Colorbox dependencies so if someone could help on the weight order I appreciate.

Depencies : eva features image node_reference nodereference_url references token views

Thanks

betovarg’s picture

Subscribing. Using this in in a drupal 7 project. Couldnt hide the teaser gallery with views (not used to new views interface tho). Will post if get something working. thxn for the time invested so far in the port.

sw3b’s picture

To hide the teaser you have do go in content type -> gallery -> display. Right there you should be able to hide what ever you want !

karens’s picture

OK, finally got to this. This is a great start, but you have different content type names, styles, and views behavior than the D6 version of the code, so I am re-working this to use the same content type and field names and settings, the same presets, and views that are set up the same as the D6 version to make maintenance easier and for a better upgrade path.

I will start committing some initial code which is NOT WORKING RIGHT YET. It's just a beginning.

sw3b’s picture

Ok cool ! Thanks !

DocMartin’s picture

Very great to see this work underway; and to see KarenS's post at #8 - I'd very much like to be able to upgrade from my Views Gallery in D6 [got some hundreds of images uploaded on a couple of sites, some with info for locations module so can show on Google maps...].
I'd just visited this and the related thread, thinking I would post just to see if Views would even "see" my images in D7, so they could still be used. But, upgrade will of course be far better.
Reassured, I'm heading off to add a few more photos to the galleries.
Meanwhile: Thanks for the work!

mooselimb’s picture

subscribing,
especially for the gallery of image-per-nodes. If i could code I'd help.
Leslie Nielsen said it best, "I just want to tell you both good luck, we're all counting on you."

TripX’s picture

sub

rogical’s picture

+1 the module http://drupal.org/project/views_galleriffic seems is a good subsitution currently, as it has a beta version now.

rggoode’s picture

subscribe

gmreed’s picture

subscribing

rickvug’s picture

For Drupal 7 I don't think that photos themselves should be nodes. File Entity module allows for any fields to be directly attached to the file itself, which is a lot cleaner.

rogical’s picture

nowdays, people like to share/comment on each photos, so how to do that via file entity module without making it as a node?

karens’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev

There is an initial functional port of this code to D7 in git, no release yet. I'm not going to alter the current behavior -- images will be nodes. As noted above, there are other D7 solutions that go in different directions, like Media and Media Gallery. The point of this module was to create a basic implementation of a gallery that would work with modules that are probably already installed and to have a way to create Organic Groups galleries (which ATM still would not be possible in D7 if images are anything other than nodes -- not opening a discussion about that here, just saying right now I can find no way for anything else to work in OG even though theoretically you can use OG with other kinds of entities).

The initial port will work the same as it works in D6. Once that is fully functional, people who are interested can explore the possibility of doing it differently, or create their own features that take a different approach.

kamkejj’s picture

StatusFileSize
new3.89 KB

Here's another D7 version of the views gallery exported from the features module using the fewest modules possible, I think.

  • ctools
  • eva
  • references
  • node reference
  • node reference url widget
  • strongarm
  • shadowbox

Seems pointless posting another one, but here it is any way.

Gabo11’s picture

Hi evrybody!

Someone knows when this great module will be ready in a "Recommended release"?
One my client wants to be able to add galleries by himself, and this is the only module that allow it in easy way! But only for D6 users!

Thanks for the help!

Gabo11’s picture

Hi there!

I find a great video tutorial by Geoff Hankerson that solve most of the problems releted to views gallry for D7.

Have a look here: Geoff Hankerson

Btw... Thanks Geoff!

rogical’s picture

Category: task » feature

I think this module needs a new maintainer to do this.

mgifford’s picture

Is there any reason not to ship a patch rather than a tarball? Just so much easier to verify that really were dealing with the same project. Even if there are radical changes, it can be done with a patch and can really verify that there are radical changes.

mgifford’s picture

Issue summary: View changes

Remove link to personnal website as a demo since it is not use anymore

amittarkar’s picture

Priority: Normal » Critical
Issue summary: View changes

any updates?