Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated PI docs

  • Loading branch information...
commit fe191e2a504c7ccae0e78b767089de5637a1e538 1 parent 295dc28
Blis Web Agency authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  pi.download_file.php
3  pi.download_file.php
@@ -104,10 +104,11 @@ public static function usage()
104 104 This addon will serve a file as a file, not a page. This means PDF's will download automatically. It also goes some way in hiding where all these files live on your server.
105 105
106 106 Step 1. Insert this in a template (e.g. /site/download/):
107   -{exp:download_file:serve restricted="" prepend="mysite_"}
  107 +{exp:download_file:serve restricted="" prepend="mysite_" remove_path="/assets/"}
108 108
109 109 Note: only use the restricted parameter if you want to prevent hotlinking
110 110 Note: only use the prepend parameter if you want to add a string to the front of the files you are serving
  111 +Note: if you don't use "remove_path" the path to your files will be viewable within the filename
111 112
112 113 Step 2. Bang this in your link:
113 114 <a href="{exp:download_file:link file='/downloads/file.pdf' template='/site/download' remove=''}">Download</a>

0 comments on commit fe191e2

Please sign in to comment.
Something went wrong with that request. Please try again.