-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
27 lines (17 loc) · 1.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Downloadable Page Type
------------------------------------
Version: 0.1
Author: Andrew Shooner ([email protected])
Build Date: June 30th 2009
Requirements: Symphony 2.0.3.
[ACKNOWLEDGMENTS]
This extension is based directly on Alistair Kearney's([email protected]) Content Type Mappings extension.
[NOTES]
This extension only sets the Content-Disposition header. It does *not* set the Content-Type.
The extension allows a page to be downloaded with a file extension pulled from its page type. When this extension is enabled, anypage with a page type that begins with a '.' will be downloaded as:
{page handle}.{page type}
So a page with handle 'form-data' and a pagetype of '.csv' will download as 'form-data.csv'.
[INSTALLATION]
1. Enable the extension
2. Give the symphony page to download a page type with a '.' - E.g: ".csv"
3. When the page is requested, it will return a header as "Content-Disposition: attachment; filename='$page-handle'&'$page-type', which should result in a download for contemporary browsers.