[Solved] Download link for Videos possible?

microsaft

Joined: 2006-08-26
Posts: 2
Posted: Sat, 2006-08-26 19:16

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

 
progressnerd

Joined: 2006-08-31
Posts: 1
Posted: Thu, 2006-08-31 06:40

I need that too!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2006-08-31 13:01

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

 
microsaft

Joined: 2006-08-26
Posts: 2
Posted: Sat, 2006-09-02 10:41

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

 
stephthegeek

Joined: 2004-08-21
Posts: 33
Posted: Tue, 2007-02-06 19:20

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.