- Issue created by @KarlShea
- Status changed to Needs review
3 months ago 5:17pm 2 April 2024 - 🇮🇩Indonesia gausarts
Thank you.
I don't remember precisely, but two reasons:
- I don't like the original module default values, due to issues I also don' t remember :)
- They are both equally default aka dead configs, so it makes no difference.
Could you confirm those defaults are different for some values?
If no difference, worth your reversal.
If any difference, I might remember the issues. - 🇺🇸United States KarlShea Minneapolis, 🇺🇸
The issue I'm hitting is that I changed background opacity in the Photoswipe module settings (/admin/config/media/photoswipe) to 0.6. So the
$options
array starts withbgOpacity
of 0.6 from the blazy settings call. Then the array_merge overwrites that withbgOpacity
0.97 from a hard-coded list (and the same would be true of any configurable setting like animation duration, type, etc).It is the case I could overwrite it again using the blazy_photoswipe_js_options alter hook, but why overwrite what the user has configured? I agree that it makes sense to have defaults in case they're not set up yet but I would have expected my site-wide Photoswipe settings to have also applied here.
- 🇮🇩Indonesia gausarts
Ah, makes sense.
So we got configurable UI for this now?
When it was written, there was no UI for that.
If there is UI, this should be changed, then. - 🇺🇸United States KarlShea Minneapolis, 🇺🇸
Ahhh if that was not configurable previously this all makes way more sense! Yes, that module has a UI for those settings.
-
gausarts →
committed 05c13ea8 on 8.x-1.x authored by
KarlShea →
Issue #3437686 by KarlShea: _blazy_photoswipe_5_options() is overwriting...
-
gausarts →
committed 05c13ea8 on 8.x-1.x authored by
KarlShea →
- Status changed to Fixed
3 months ago 7:20pm 2 April 2024 - 🇮🇩Indonesia gausarts
Yes, that is why I said dead configs.
Committed. Thank you for contribution.
Automatically closed - issue fixed for 2 weeks with no activity.