I have created a views (display:block) of format galleria that shows one image field of a content node.
The gallery works fine, however, the option set does not appear to loading and/or applying for Galleria when the view is displayed on a page. The galleria slide show loads up and works, but ignores every setting in the option set.
I have set the galleria option set in the node field display options as well as views format settings, *and* the formatter for the field in the view. Am I doing this correctly?
Do option sets work in views (display:block)? If so, is there something additional I need to do in the node or view to have the option set apply? If not, is there javascript that I can use to pass the option values I want into the galleria js?
Thanks!
Comments
Comment #1
daryand CreditAttribution: daryand commentedi am also having this same issue (if my assumptions below are correct):
In "Block -> fields-> Content: image -> link image to: File (or Content)" - nothing happens, behavior does not change.
is there a patch file available somewhere?
Comment #2
ladybug_3777 CreditAttribution: ladybug_3777 commentedI'm having the same issue. Galleria ignores my selected option set when it's being used in a view. It works fine when used on the "manage display" of the page itself.
Comment #3
justinen CreditAttribution: justinen commentedHas anyone found a solution to this issue? I'm experiencing the same behavior when I try to use Galleria module with views. The only option set that takes is the default option set.
Comment #4
simon.westyn CreditAttribution: simon.westyn commentedI fixed this by adding an extra "if" in galleria/theme/theme.inc.
In the template_preprocess_galleria_container function there is an if:
the problem is that the view doesn't have it's optionset stored in this variable but in
But this doesn't completely solve the problem.. Apartently the width and height were passed as string to the JS instead of integer.
To fix this I added 2 lines of code in the function "galleria_add_js" (galleria.module)
So, to fix this:
change the following if:
to:
and add
in galleria_add_js (galleria.module), above where the $js_settings array is created, like this:
I hope this will solve your problem :)
Comment #5
jmoyles CreditAttribution: jmoyles commentedSimon - thanks for the hard work here.