Ecommerce for Statamic

File download code

Outputs an encrypted download code. Same as what is used in the file download link tag, except it just outputs the code.

Parameters

url
The url of the page containing the download tag.
file
The path to the file.
expire
How many seconds should the link take to expire? Leave blank to never expire.
member
The member account to associate the download to. The download will only work if you are logged in as the specified member.

Example

{{ bison:file_download_code file='/_downloads/my-file.jpg' expire='3600' }}


Problem with this page? Edit it on Github.