Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
pixelfearPublic archive

About

Force downloads in your Statamic site.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Download

Force downloads in your Statamic site.

Installation

  • Copy hooks.download.php and pi.download.php into _add-ons/download/

Usage

Create a download URL by using the plugin tag:

<a href="
  {{ download file="/assets/IMG1234.jpg" as="photo.jpg" }}
">Download Photo</a>

The file parameter can also be filename or url. Whichever you prefer.
The as parameter is optional. This will let you control the filename of the downloaded file.

About

Force downloads in your Statamic site.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages