Forums

NextGEN Gallery
Link to original zip file? (7 posts)

  1. 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)?

  2. cocobongo
    Member
    Posted 1 year ago #

    anyone? :(

  3. cocobongo
    Member
    Posted 1 year ago #

    please???

  4. Joseph
    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.

  5. 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?

  6. Joseph
    Member
    Posted 1 year ago #

    Sorry, I meant making the link dynamic.

    Try this:

    <a href="<?php echo site_url('/' . $images[0]->path); ?>/gallery.zip">Download Link</a>
  7. 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.