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

pixelfear/Statamic-Download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages