Change file path in Gallery module?
Posted: Thu Oct 20, 2022 6:16 am
Perhaps a silly question, but is there a way to change the file path in the Gallery module?
I looked over the Gallery files (quickly) but couldn't see where to change them.
I've been using a CDN, which caches all images from a set URL, for other modules and like the functionality and page speed increases.
So rather than the full image file path being used in templates in {$image->image}, I'd either like to set the CDN path or just the immediate file path, without the domain part being included and hard code the CDN path into Gallery templates. Hopefully this makes sense.
I could use LISE, but this is an older site with a few hundred galleries, so that seems like a bit more work.
Thanks for any help.
Cheers,
Paul
I looked over the Gallery files (quickly) but couldn't see where to change them.
I've been using a CDN, which caches all images from a set URL, for other modules and like the functionality and page speed increases.
So rather than the full image file path being used in templates in {$image->image}, I'd either like to set the CDN path or just the immediate file path, without the domain part being included and hard code the CDN path into Gallery templates. Hopefully this makes sense.
I could use LISE, but this is an older site with a few hundred galleries, so that seems like a bit more work.
Thanks for any help.
Cheers,
Paul