Forum topic: How to add 'download original video file' link?
Submitted by leetamus on Tue, 2008/08/05 - 18:15.
Hey all
Anyone know of a method to add a link below the video that downloads the original version? I know there's the button on the player that already does this, I'd just prefer to have a link.
Thanks!
Leet






You could probably use the contemplate module.
hmm cool thanks i'll check in to that ;)
man i just can't seem to figure this out.. I notice this in on the frontpage:
Token / Custom Links support - have video info under the node, e.g. duration, download link.
I installed custom links but still at a loss... im off to find Token... maybe that will help. Once I get it working I'll be sure to post back here as im sure im not the only one hung up on this and this forum is sort of a ghost town when looking for answers.
ok! got it working. Here's how:
Download the Token and Custom Links modules and activate them. Go into Custom Links from the Admin panel and add a new link. You will notice a new section called 'Placeholder Tokens' which will list all the available variables you can access. In the case of op_video you just put the variable you want into the 'Title' field and leave the path blank. For the [field_video_upload-download] download link you'll need to check the 'title uses html' box or it won't work. That's it!
sidenote: it would be cool if the download link variable was the actual download link rather than outputting html Download I would prefer mysite.com/files/videos/original/thevid.mp4 so I could set my own link text.
hope it helps someone out there! :D
There are more tokens exposed in the latest version: http://drupal.org/node/286770
thanks jbrown, I noticed that, some nice raw versions of the existing tokens including just the link for the original video download so we can customize the text as we want wootwoot!
Post new comment