Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 2.11 KB

README.md

File metadata and controls

53 lines (30 loc) · 2.11 KB

Plugin icon

Digital Download plugin for Craft CMS

Provide secure digital download links to your files.


For complete documentation, see plugins.doublesecretagency.com/digital-download

Display a Link

In its most basic form, you can generate a file download link with just a single line of code...

{{ craft.digitalDownload.link(asset) }}

See the full docs on how to display a link...

Create a Token

A token can be generated to denote a specific file download with specific expiration parameters. It's common practice to create a token, then store it for later use.

{% set token = craft.digitalDownload.createToken(asset, options) %}

Learn which options are available when creating a token...

Store a Token

Here's a trick for automatically generating tokens. It uses the magic of a Preparse field to store a persistent token in your Entry.

See how to use this with your entries...

Short Download Links

The file download link will mask the actual file location. You have an opportunity to adjust the download link URL...


Further Reading

If you haven't already, flip through the complete plugin documentation.

And if you have any remaining questions, feel free to reach out to us (via Discord is preferred).

On behalf of Double Secret Agency, thanks for checking out our plugin! 🍺

Logo for Double Secret Agency