Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If Javascript aggregation is on, Galleria will not function.
Comment | File | Size | Author |
---|---|---|---|
#4 | javscript-aggregation-1132370-4.patch | 1.61 KB | larowlan |
#1 | aggregate-javascript-1132370-1.patch | 959 bytes | gopherspidey |
Comments
Comment #1
gopherspidey CreditAttribution: gopherspidey commentedThis is a patch that has only be tested with #1082882-8: Public/private paths and using the image styles patch applied first. It fixes the Aggregation problem.
Comment #2
gopherspidey CreditAttribution: gopherspidey commentedchanging status
Comment #3
larowlanCouldn't all of these use the new #attached property of the form api. See http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
Powered by Dreditor.
Comment #4
larowlanAttached patch uses the new #attached property.
Comment #5
miro_dietikerGreat patch. However it was against an old version.
That's what we missed in D6 to D7 conversion.
I've redone the patch and added the new features (settings, ..) of galleria also... A bunch more to cover.
Comment #6
gopherspidey CreditAttribution: gopherspidey commentedI am still seeing an aggregation issue. It does not find the theme when Javascript aggregation is on. I found that it is best to use the Loadtheme function http://galleria.aino.se/docs/1.2/api/utilities/#galleria-loadtheme-url-o...
If you do not, the preprocessing does something with the ordering of when the theme functions are loading.
Comment #7
miro_dietikerI'd love to get a patch. .-)
Will you find time to work on that?
We already ran out of time for galleria...
Comment #8
jackhutton CreditAttribution: jackhutton commentedsame experience here; when javascript aggregation is turned on the theme is not found;
Comment #9
jackhutton CreditAttribution: jackhutton commentedI'd like the galleria to work w. aggregation turned on.. of course.
since the developers of galleria are slow to support ..
I'm wondering how I'd implement gopherspidey's work around in #6..
any advice ..
thanks
Comment #10
gopherspidey CreditAttribution: gopherspidey commentedTake a look at the patch in comment #1. The method is still valid. You have to add
Galleria.loadTheme();
to the galleria.load.js file with the theme javascript file as the argument.I just have not had time to look at the updated code that was changed with when the settings page and theme selection was added. It should be easy.
Comment #11
jackhutton CreditAttribution: jackhutton commentedthanks gopherspidey - i'll look at that remedy..
as always, really appreciate the consistent help you offer.. thanks again.
Comment #12
jackhutton CreditAttribution: jackhutton commentedin sites/all/modules/galleria/galleria.module
line 366 loads the galleria.load.js
-- and the galleria.load.js file is pretty minimal
..I'm not well versed in javascript: not sure where I would I drop in the line
sorry to be confused here..
thanks for looking at this..
Comment #13
jackhutton CreditAttribution: jackhutton commentedin sites/all/modules/galleria/galleria.module
line 339 the .js loads ..
and the theme .js file loads on line 345
and on line 366 the galleria.load.js file is called (reiterating myself, I know.. )
just trying to understand how afford .js / .css aggregation on this module.. thanks
Comment #14
s_leu CreditAttribution: s_leu commentedonce again thanks for the hint eggonbeagle, i implemented this on my local repository. will commit soon. cheers
Comment #15
jackhutton CreditAttribution: jackhutton commentedlook forward to your fix - thanks for your work on this
Comment #16
s_leu CreditAttribution: s_leu commentedpushed.
Comment #17
miro_dietikereggonbeagle, thank you for your recent inputs.
However, quoting your statement:
"since the developers of galleria are slow to support .."
Note that words like this absolutely won't help you getting any kind of support from us.
If you want to push things wither provide clean patches yourself or hire a developer to do the same.
Comment #18
jackhutton CreditAttribution: jackhutton commentedMiro, I apologize of course.
I acknowldge all of your input - I was under an impression that you were acting independently of the developers - please accept my apologies
Comment #19
miro_dietikereggonbeagle
.-) thanks - BTW: s_leu also belongs to our team.
(See more about us on the bottom of the galleria project page.)
Looking forward to hear more from you - and keep having fun with galleria!
Comment #20
jackhutton CreditAttribution: jackhutton commented.. can I just say 'beauty'!! aggregation works terrifically in the june 10 7.x version.. Thank you!