Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ExpressionEngine Download Content plugin

branch: develop
README.rst

Download Content ExpressionEngine plugin

Simply place the plugin tag around the content that you wish to send to the browser as a file download. Please note that when this plugin tag is encountered, all processing on the template will immediately cease and whatever state the content is in will be sent to the browser. So avoid using global variables, advanced conditionals, embedded templates, or other tags that would be parsed after the plugin.

Parameters

filename=

the file name to use for the download

Example

{exp:download_content filename="foo.txt"}
Some random content, maybe from a weblog tag.
{/exp:download_content}
Something went wrong with that request. Please try again.