Dear,

I've been trying to get the Gallery Formatter module to work with Views. I've found that you had to set the style settings to "Use Field Template" in views but this alone does not cause the gallery to appear. What other actions need to be taken to make the Formatter work as a view?

Kind thanks in advance.

Versions:
Drupal 7.7
Views 7.x-3.0-rc1
Gallery Formatter 7.x-1.0

Comments

DRIVE’s picture

:) You have an incredible amount of reading and experimentation ahead of you. I know, I've been there. Views is a mind eraser.... even for the spooks and the true guru's there are plenty of head-scratchers and "thing smashing" to be done when working with them.

I have some complex views using GF on numerous content types with taxonomy structures and such but I can tell you there is no "easy" way around. Unless someone has a theme that has a boatload of tutorials, presets, views templates/code etc etc "built in" (which Drupal frowns on building in dependencies into themes). There just is no easy way my friend. Been programming numerous langs for 12+yrs and views was just hard for me to get my head around.... now it seems kind of "easy" but there is another caveat once you DO get familiar with views..... PLANNING.... unless building the simplest of sites, and most people arent who are interested in Views, you have to very carefully spell out the architecture of how your views will work. You can do an incredible amount.... HUGE AMOUNT of work only to discover that you didnt plan properly and have to backtrack......

But I want to encourage, not discourage. You will have to teach yourself. There is PLENTY of documentation.... all of which will make your head swim.... but if you stick to it, it can be done.

Advice: Get "Advanced Help" module and read those docs over and over. There are books, tutorials... tons of material. I am not aware of any shortcuts.... its a bugger, but well worth it. If you stick with your plan, you are also going to want Taxonomy structures... I guarantee it!! Wait till that gets tossed in the mix....

I have stuff I could share with you but none of it is "simple"... it wont make sense to you until you get some familiarity. Will try to help as much as I can with questions and such.

Did I help or motivate you?? lol.... I dont know your skill level, so pardon me if you have more of a clue.... but based on your questions I think you are just getting started with it.... well worth the journey though... rest assured :D

Sherbet’s picture

Thanks for your reply!

Well the goal is to allow for the creation of multiple nodes with images attached to them and accumulate those in a single gallery. That's why I figured Views would be the module of choice. Is there absolutely no easy way to accomplish this? My php knowledge is fairly limited at this time unfortunately. Drupal was the reason to start learning php in the first place :)

DRIVE’s picture

You do not need to know PHP to use Views :D (or the vast majority of Drupal modules).

You need to know VIEWS to use Views.

A person can use Views without much knowledge about anything... but until you do some reading coupled with experimentation, you will be flying blind. If you try to use views without doing any reading/study at all, you will be stuck in a very long loop of endless experimentation... unless you get lucky of course.

What you want to do is one of the top reasons Views was invented in the first place. Creating a non-existent "Gallery" using Views is possible I think... you will have to solve the problem of letting the Gallery know which images it needs to use. Getting the images via views is the easy part....

If you get the Advance Help module, it will include a large repository of info you can read from your own computer/server or wherever you have the Drupal installation.

Start here and you can certainly do what you want: http://drupal.org/project/views
*this is also very useful: http://views-help.doc.logrus.com/

Enjoy!! :D

Sherbet’s picture

I've used Views previously and I've got the gallery to work seperately and the images to show up in views.. All I need to do is to inherit the Gallery Formatter style in my view.

DRIVE’s picture

how about providing a couple screenshots and an export of your view (paste here between code tags). Link to your demo if possible.

I might take a crack at it, but as I said, getting the images is the easy part.

giakoump’s picture

Have you found any answer to this?? I need to know too.!
I've worked with views before but the output of the Gallery formatter is too complex to adjust it in the php.
It outputs ul(s) and li(s) between the classes so when I try to put it to the fields tpl it outputs 3 times the code I want, and is too hard for me to write the css needed for the result.
The only good thing is that is easy to insert the libraries and the js to the code so the effects are palying.

MrPhilbert’s picture

When configuring your Gallery Formatter, uncheck "Add default classes" and check "Use field template" under "Style Settings". You should be good to go.

Basically, when the default classes are added, the jquery selectors are no longer valid.
I believe the field template passes the actual template from the module but I could be wrong.

Check it out and let me know if it works.
Philbert

giakoump’s picture

I've tried that. The gallery works as single images not as a slideshow. The posts are one after another with the zoom button from the Gallery but nothing else.
The output is still:
Title1
Image1

Title2
Image2

The output should be

Title1
-------------
| Image_slide1 |
-------------
---------------------------------------------
| image_thumb_1 | Image_thumb2 | Image thumb_3 |
---------------------------------------------

Where image_thumb1 is from node1 image thumb2 from node2 etc...

Tezza’s picture

With #7, above, here's how i got it working. In 'Multiple field settings', check 'Display all values in the same row' (probably checked by default) and select 'Unordered list' as the Display type.

Hope this helps.

mjcarter’s picture

Thanks a lot MrPhilbert, this had me scratching my head for quite a while, your solution worked straight away with otherwise default settings

nirbhasa’s picture

I can confirm that the solutions put forward in #7 and #9 work - the only thing is that the gallery javascript fails to load if the view output is cached.

jprj’s picture

Thank you. It's so simple when you know how!

mtoscano’s picture

Versions:
Drupal 7.12
Views 7.x-3.1
Gallery Formatter 7.x-1.0 and -dev

I don't have the "Use field template" option under "Style Settings". Do I miss something? Which format should I use?
Thanks

Sorry: fixed! I chose the wrong field...

sibiru’s picture

i tried #7 and #9 but still not working

stevieb’s picture

#7 & #9 it work nicely for me

fraweg’s picture

#7 & #9 it works perfect for me...

Thanks a lot for this post!

EDIT:

One issue is still there. With this #7 the visibility setting from Profile2Privacy will not respect :-(

Has anyone an Idea?

Best regards
Frank

fraweg’s picture

Hello,

this is a big problem for me. I think I have to change to something like "Gallery" for views... :-(

Best regards
Frank

kiwimind’s picture

I'm still scratching my head over this one.

I'm not even sure that what I'm trying to do is possible.

What I'd like is to be able to pull a load of nodes together, with one image from each, and display these images as a single galleryformatter slideshow in a block.

I can get them in a list and showing with the galleryformatter magnifying glass to enlarge them, which would suggest it's being loaded ok, but I can't seem to bring them together in to a single gallery.

Manuel Garcia’s picture

@shonk that is not possible with this module. It's only a field formatter, not a views style plugin. You should try perhaps views_slideshow for that.

kiwimind’s picture

That's what I thought. I've got views slideshow up and running, I was hoping to be able to slot in gallery formatter instead.

Thanks for the info.

zylootino’s picture

#7 and #9 worked for me, but instead of unordered list I picked simple separator and left the field empty.

Ram_doss’s picture

As you said i tried both #7 and #9, but only single image is being displayed for me.. what view format should i give
Format:
Grid
HTML list
Jump menu
Quicktabs
Slideshow
Table
Unformatted list

Among these ?? I am getting

<div class="galleryformatter galleryview galleryformatter-greenarrows gallery-processed">
<div style="width: 300px; height: 300px;" class="gallery-slides"> these divs for jquery gallery formatter but i am not getting this <code><div style="width: 300px;" class="gallery-thumbs">

i am using format of view as views sildeshow
what could be the issue?