cocobongo
Member
Posted 1 year ago #
I assume this must be an easy one and probably it's mentioned somewhere, but I tried searching with no luck, so bear with me on this one. Anyway, what I want to do is to add a link to the original zip file on the gallery template. ie something like
thumb | thumb | thumb | thumb | thumb |
thumb | thumb | thumb | thumb | thumb |
download all pics in a zip file
any ideas on how to achieve this? Or do I need to add the link manually (boomer)?
cocobongo
Member
Posted 1 year ago #
cocobongo
Member
Posted 1 year ago #
Just add a link in gallery.php template and make the file name dynamic depending on how you name them.
cocobongo
Member
Posted 1 year ago #
hi Joseph, thank you for your answer. I knew the gallery.php template part, but I don't know what's the code to "make the file name dynamic". All my zip files are named "gallery.zip" so what should I exactly use to grab that?
Sorry, I meant making the link dynamic.
Try this:
<a href="<?php echo site_url('/' . $images[0]->path); ?>/gallery.zip">Download Link</a>
cocobongo
Member
Posted 10 months ago #
Just a quick note to thank you Joseph, I wasn't notified of this answer and didn't see it and found out today because I needed it again!