Hi,
is it possible to insert a download link for my videos? Actual gallery2 is starting to play the video on my browser after I clicked on it. It would be nice if there is a alternate download link so the user can download that movie to burn it on CD.
Thank,
Benni
Posts: 1
I need that too!
Posts: 3236
It should be possible, most themes I believe are designed to offer a link if it can't be played in the browser or if it is an unsupported type. You should look in the theme's tpl and see if you can figure out where this is happening, then... instead of letting it follow the logic of "if i can display the movie, don't show a download link" you change it to be "if i can display the movie, i'll still also show a download link"
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 2
I found a solution:
Put this
{if ($child.entityType == "GalleryMovieItem")}
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}">Download</a> (Right click and<BR>"Save target under...")
{/if}
into
gallery2/themes/matrix/templates/album.tpl
Now you have nice Download link.
Found at:
http://gallery.menalto.com/node/38563?highlight=video%2Cdownload%2Cand%2Cffmpeg
Thanks,
Benni
Posts: 33
I tried this mod with the PGlightbox theme, but it isn't working. When you try to save the target, it comes up with the filename as main.php, not the actual movie file. Any ideas?
Edit: nevermind! Realized that you have to have URL Rewrite on for it to work.