Link Vault for Craft CMS

Link Vault allows you to protect your local and external Assets download links, track all downloads and track leech attempts.

{# Example 1: Passing an AssetFileModel instance. #}
{% for download in entry.downloadableAssets %}
    <a href="{{ craft.linkVault.downloadURL(download) }}" >Download This</a>
{% endfor %}

{# Example 2: Passing a system path. #}
{% for download in entry.downloadableAssets %}
    {% set basePath = craft.config.environmentVariables.basePath %}
    {% set fileFolder = '/'~download.source.settings['path']~download.getFolder().path %}
	{% set filePath = basePath ~ fileFolder ~ download.filename %}
    <a href="{{ craft.linkVault.downloadURL(filePath) }}" >Download This</a>
{% endfor %}

Support

For support, contact support@gomasuga.com.

Installation & Updating

To install Link Vault, place the linkvault directory into your craft/plugins/ directory. From the control panel, navigate to the plugins settings screen and click the Install link in the Link Vault row.

Requirements

  • Craft 2.6+